CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

CosmoMC (v Oct 2011): cmbtypes.f90 compilation error
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Ali Vanderveld



Joined: 29 Aug 2007
Posts: 3
Affiliation: JPL / Caltech

PostPosted: December 14 2011  Reply with quote

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
View user's profile  
Antony Lewis



Joined: 23 Sep 2004
Posts: 675
Affiliation: University of Sussex

PostPosted: December 15 2011  Reply with quote

I think these aren't the default ifort parameters. In particular you need -fpp to preprocess the files.
Back to top
View user's profile [ Hidden ] Visit poster's website
Ali Vanderveld



Joined: 29 Aug 2007
Posts: 3
Affiliation: JPL / Caltech

PostPosted: December 15 2011  Reply with quote

This has solved the problem. Thanks again!
Back to top
View user's profile  
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.