Cosmomc: cmbtypes file error during instlallation

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
faisal rahman
Posts: 2
Joined: August 02 2012
Affiliation: ANU

Cosmomc: cmbtypes file error during instlallation

Post by faisal rahman » August 06 2012

Hi

I am installing Cosmomc. When I do gmake all after clean, the setup starts compiling the files but when it reaches to cmbtypes.f90 it gives the errors below:

Code: Select all

f90 -DMATRIX_SINGLE -m32 -fast -ftrap=%none -M../camb  -DDR71RG -M/usr/lib/libcfitsio.so/include -M/home/faisal/PLUTO/cosmomc/likelihood_v4p1 -c cmbtypes.f90

module cmbtypes
       ^        
"cmbtypes.f90", Line = 3, Column = 8: ERROR: The compiler has detected errors in module "CMBTYPES".  No module information file will be created for this module.

#ifdef DR71RG
^             
"cmbtypes.f90", Line = 26, Column = 1: ERROR: This statement must begin with a label, a keyword, or an identifier.

#else
^     
"cmbtypes.f90", Line = 33, Column = 1: ERROR: This statement must begin with a label, a keyword, or an identifier.

  integer, parameter :: num_matter_power = 74 !number of points computed in matter power spectrum
                        ^                                                                         
"cmbtypes.f90", Line = 34, Column = 25: ERROR: "NUM_MATTER_POWER" has the PARAMETER attribute.  It must not be given the PARAMETER attribute again.

  real, parameter    :: matter_power_minkh =  0.999e-4  !1e-4 !minimum value of k/h to store
                        ^                                                                    
"cmbtypes.f90", Line = 35, Column = 25: ERROR: "MATTER_POWER_MINKH" has the PARAMETER attribute.  It must not be given the PARAMETER attribute again.

  real, parameter    :: matter_power_dlnkh = 0.143911568     !log spacing in k/h
                        ^                                                        
"cmbtypes.f90", Line = 36, Column = 25: ERROR: "MATTER_POWER_DLNKH" has the PARAMETER attribute.  It must not be given the PARAMETER attribute again.

  real, parameter    :: matter_power_maxz = 0.    !6.0
                        ^                              
"cmbtypes.f90", Line = 37, Column = 25: ERROR: "MATTER_POWER_MAXZ" has the PARAMETER attribute.  It must not be given the PARAMETER attribute again.

  integer, parameter :: matter_power_lnzsteps = 1 !20
                        ^                             
"cmbtypes.f90", Line = 38, Column = 25: ERROR: "MATTER_POWER_LNZSTEPS" has the PARAMETER attribute.  It must not be given the PARAMETER attribute again.

#endif
^      
"cmbtypes.f90", Line = 39, Column = 1: ERROR: This statement must begin with a label, a keyword, or an identifier.

f90comp: 424 SOURCE LINES
f90comp: 9 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
gmake: *** [cmbtypes.o] Error 1
Please tel me if anyone else is having the same issue and what is the solution.

Thanks

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

Re: Cosmomc: cmbtypes file error during instlallation

Post by Antony Lewis » August 06 2012

Turn on preprocesing switch, cf

http://cosmocoffee.info/viewtopic.php?p=5309

and others.

Post Reply