Page 1 of 1

COSMOMC on Apple Powerbook G4

Posted: November 04 2004
by Jochen Weller
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

one more thing

Posted: November 04 2004
by Jochen Weller
I forgot to mention that I had to save the driver.F90 in source
with pico to make it unix text style

COSMOMC on Apple Powerbook G4

Posted: November 25 2004
by Christophe Ringeval
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]