CAMB rayleigh compilation

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Federico Bianchini
Posts: 13
Joined: June 25 2013
Affiliation: University of Melbourne
Contact:

CAMB rayleigh compilation

Post by Federico Bianchini » July 03 2019

Hi Antony and all,

I've cloned the CAMB rayleigh branch from github but I'm having some issues with the compilation on my laptop (macbook with gfortran 6.3.0).

Specifically, I'm getting the following error:

Code: Select all

mkdir -p Release
gfortran -O3 -fopenmp -ffast-math -fmax-errors=4 -JRelease -IRelease/ -c constants.f90 -o Release/constants.o
constants.f90:90:29:

         if (id==0) error stop('Error id must be non-zero')
                             1
Error: Blank required in ERROR STOP statement near (1)
make: *** [Release/constants.o] Error 1
Any help is much appreciated!

Thanks,
~federico

Antony Lewis
Posts: 1941
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CAMB rayleigh compilation

Post by Antony Lewis » July 03 2019

You'd either need to fix the gfortran compatibility issues yourself, or try to merge changes from the main branch.

Federico Bianchini
Posts: 13
Joined: June 25 2013
Affiliation: University of Melbourne
Contact:

Re: CAMB rayleigh compilation

Post by Federico Bianchini » July 05 2019

Thanks for the quick reply Antony, I solved it by switching to ifort :)

Post Reply