Page 1 of 1

CAMB rayleigh compilation

Posted: July 03 2019
by Federico Bianchini
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

Re: CAMB rayleigh compilation

Posted: July 03 2019
by Antony Lewis
You'd either need to fix the gfortran compatibility issues yourself, or try to merge changes from the main branch.

Re: CAMB rayleigh compilation

Posted: July 05 2019
by Federico Bianchini
Thanks for the quick reply Antony, I solved it by switching to ifort :)