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.
problem in compiling cosmoMC
-
- Posts: 1943
- Joined: September 23 2004
- Affiliation: University of Sussex
- Contact:
Re: problem in compiling cosmoMC
You need to compile with ifort 14+, not gfortran.
i.e. if you have it installed try mpif90 -f90=ifort)
i.e. if you have it installed try mpif90 -f90=ifort)