| View previous topic :: View next topic |
| Author |
Message |
Ali Vanderveld
Joined: 29 Aug 2007 Posts: 3 Affiliation: JPL / Caltech
|
Posted: December 14 2011 |
|
|
Hi, I'm trying to get the latest version of CosmoMC to run out of the box (without using WMAP or any additional datasets), but I'm having difficulty compiling. The problem seems to be in compiling cmbtypes.f90, leading to the following errors:
| Quote: | ifort -DMATRIX_SINGLE -w -O3 -mdynamic-no-pic -framework Accelerate -openmp -I../camb -DNOWMAP -c cmbtypes.f90
cmbtypes.f90(34): error #6418: This name has already been assigned a data type. [NUM_MATTER_POWER]
integer, parameter :: num_matter_power = 74 !number of points computed in matter power spectrum
————————
cmbtypes.f90(35): error #6418: This name has already been assigned a data type. [MATTER_POWER_MINKH]
real, parameter :: matter_power_minkh = 0.999e−4 !1e−4 !minimum value of k/h to store
————————
cmbtypes.f90(36): error #6418: This name has already been assigned a data type. [MATTER_POWER_DLNKH]
real, parameter :: matter_power_dlnkh = 0.143911568 !log spacing in k/h
————————
cmbtypes.f90(37): error #6418: This name has already been assigned a data type. [MATTER_POWER_MAXZ]
real, parameter :: matter_power_maxz = 0. !6.0
————————
cmbtypes.f90(38): error #6418: This name has already been assigned a data type. [MATTER_POWER_LNZSTEPS]
integer, parameter :: matter_power_lnzsteps = 1 !20
————————
compilation aborted for cmbtypes.f90 (code 1)
make: *** [cmbtypes.o] Error 1 |
I'm using the default settings for everything possible (aside from pointing to the correct LAPACK location). Any ideas as to what I'm doing wrong? Thanks in advance. |
|
| Back to top |
|
 |
Antony Lewis
Joined: 23 Sep 2004 Posts: 675 Affiliation: University of Sussex
|
Posted: December 15 2011 |
|
|
| I think these aren't the default ifort parameters. In particular you need -fpp to preprocess the files. |
|
| Back to top |
|
 |
Ali Vanderveld
Joined: 29 Aug 2007 Posts: 3 Affiliation: JPL / Caltech
|
Posted: December 15 2011 |
|
|
| This has solved the problem. Thanks again! |
|
| Back to top |
|
 |
|