error in cosmomc

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
moslem zarei
Posts: 28
Joined: March 11 2008
Affiliation: Isfahan University of Technology
Contact:

error in cosmomc

Post by moslem zarei » April 04 2008

I have downloaded the latest version of cosmomc but I have the following error:


[zareie@localhost source]$ make all
ifort -DMATRIX_SINGLE -O2 -ip -W0 -WB -openmp -fpp -DMPI -vec_report0 -I/home/zareie/Desktop/cfitsio/intel/mkl/10.0.1.014//lib/include -I/home/zareie/Desktop/likelihood_v3 -I../camb -c utils.F90
fortcom: Error: utils.F90, line 908: Cannot open include file 'mpif.h'
include "mpif.h"
------------^
fortcom: Error: utils.F90, line 980: This name does not have a type, and must have an explicit type. [MPI_COMM_WORLD]
call mpi_comm_rank(mpi_comm_world,GetMPIrank,ierror)
----------------------^
fortcom: Error: utils.F90, line 1019: This name does not have a type, and must have an explicit type. [MPI_SUCCESS]
if (ierror/=MPI_SUCCESS
[MPI_SUCCESS]
if (ierror/=MPI_SUCCESS) stop 'MpiStat: MPI rank'
--------------------^
compilation aborted for utils.F90 (code 1)
make: *** [utils.o] Error 1

Pascal Vaudrevange
Posts: 50
Joined: March 26 2006
Affiliation: DESY
Contact:

error in cosmomc

Post by Pascal Vaudrevange » April 04 2008

You seem to be lacking an MPI installation. Either grab one from

http://www.open-mpi.org/

or turn off MPI support in the Makefile by removing the switch -DMPI in the FFLAGS.[/url]

Post Reply