problem in compiling cosmoMC

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
saber young
Posts: 1
Joined: May 05 2014
Affiliation: bnu

problem in compiling cosmoMC

Post by saber young » August 02 2014

Hi
having a problem in "make" the cosmomc/source since my wmap likelihood software tests good.
Makefile goes that:

F90C = mpif90

FFLAGS = -mkl -openmp -O3 -xHost -no-prec-div -fpp -DMPI
LAPACKL = -lmpi

#set WMAP empty not to compile with WMAP, e.g. WMAP = /scratch/../WMAP9/likelihood_v5
WMAP = /usr/local/cosmomc/WMAP7

#Needed for WMAP; set from ~/.bashrc definition or edit here
cfitsio = /usr/local/cfitsio


Then the following error appears:
gfortran: error: unrecognized option ‘-no-prec-div’


While somebody told me to change Makefile so that
FFLAGS = -O2 -x f95-cpp-input -DMPI -fopenmp -w -g # -ffree-form
LAPACKL = -L. -L$(CFITSIO)/lib -lcfitsio -llapack -lblas -ltmg

But some mistakes exits that:

ObjectLists.f90:15.16:

class(*), pointer :: p => null()
1
Fatal Error: Unlimited polymorphism at (1) not yet supported
make: *** [ObjectLists.o] Error 1

Who can teach me to set the Makefile to compile cosmoMC?
Best wishes.

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

Re: problem in compiling cosmoMC

Post by Antony Lewis » August 03 2014

You need to compile with ifort 14+, not gfortran.
i.e. if you have it installed try mpif90 -f90=ifort)

Post Reply