COSMOMC on Apple Powerbook G4

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Jochen Weller
Posts: 45
Joined: September 24 2004
Affiliation: Ludwig-Maximilians-University Munich
Contact:

COSMOMC on Apple Powerbook G4

Post by Jochen Weller » November 04 2004

Hello

I just installed and run cosmomc successfully on my Apple Powerbook G4.

The changes I required are the following:

COSMOMC to work on Apple Laptop with NAGf95 compiler:
change camb Makefile:

#NAGF95, single processor:
F90C = f95
FFLAGS = -DNAGF95 -O3 -fpp -ieee=full

(also equation.f90 line 2050 (empty line) has to be removed)

* after compilation I also required : ranlib camblib.a

change Makefile in source
F90C = f95
FFLAGS = -DNAGF95 -O3 -fpp -ieee=full
LAPACKL = -framework vecLib -L/sw/lib -lg2c
INCLUDE = -I../camb

(note that this assumes you have the g2c library in sw/lib
where it probably is when you installed x11)

in EstCovmat.f90
in line 85: had to sort out problem with quotes



Have fun

Cheers
Jochen

Jochen Weller
Posts: 45
Joined: September 24 2004
Affiliation: Ludwig-Maximilians-University Munich
Contact:

one more thing

Post by Jochen Weller » November 04 2004

I forgot to mention that I had to save the driver.F90 in source
with pico to make it unix text style

Christophe Ringeval
Posts: 17
Joined: November 07 2004
Affiliation: Theoretical and Mathematical Physics Group, CP3, Louvain University
Contact:

COSMOMC on Apple Powerbook G4

Post by Christophe Ringeval » November 25 2004

I forgot to mention that I had to save the driver.F90 in source
with pico to make it unix text style

in EstCovmat.f90
in line 85: had to sort out problem with quotes
Hi,
same issues on unix computers. For the return statements one may filter them with the unix command "strings"
strings iinputfile.f90 > outputfile.f90

For the second issue, this is due to the total number of characters on a line. In f90, one line is limited to 132 characters. Splitting the line with "&" solves this.

Cheers,
Christophe.[/quote]

Post Reply