CAMB: Problem in compilation with FITS option

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Savvas Nesseris
Posts: 77
Joined: April 05 2005
Affiliation: UAM/IFT
Contact:

CAMB: Problem in compilation with FITS option

Post by Savvas Nesseris » January 12 2006

Hi,
I have successfully compiled and tested CAMB with the g95 fortran compiler and I tried to compile it with the FITS option, but in vain. I altered the makefile to include the Healpix and cfitsio paths, which by the way both work fine, and ran:

make clean (to delete the *.o files etc)
make camb_fits

which produced the following, normal, output on the screen:

g95 -O2 -c subroutines.f90
g95 -O2 -c inifile.f90
g95 -O2 -c power_tilt.f90
g95 -O2 -c recfast.f90
g95 -O2 -c modules.f90
g95 -O2 -c bessels.f90
g95 -O2 -c equations.f90
g95 -O2 -c halofit.f90
g95 -O2 -c lensing.f90
g95 -O2 -c cmbmain.f90
g95 -O2 -c camb.f90
g95 -O2 -IC:/Healpix_2.01/include_gfc subroutines.o inifile.o power_tilt.o
recfast.o modules.o bessels.o equations.o halofit.o lensing.o cmbmain.o camb.o writefits.f90 inidriver.F90 -LC:/Healpix_2.01/lib_gfc -lhealpix
-LC:/Healpix_2.01/src/cxx/lib -lcfitsio -DWRITE_FITS -o camb_fits

and got stuck there without producing other output for ~45minutes, after which I terminated it. I am not sure, but there seems to be a problem, as for CAMB itself it took my PC ~10sec to compile it without FITS support.
Does anyone have a clue about what might have gone wrong?
Nesseris Savas

Savvas Nesseris
Posts: 77
Joined: April 05 2005
Affiliation: UAM/IFT
Contact:

CAMB: Problem in compilation with FITS option

Post by Savvas Nesseris » February 03 2006

Hi,
After some tests I realized that the problem was that I had compiled Healpix 2.01 with the gfortran compiler and CAMB with g95. There seems to be some incompatibility between the two. After compiling both with g95 everything worked out right!
Nesseris Savas

PS. It would be nice if future versions of CAMB included a warning, in the relevant part of the readme file, about this.

Post Reply