CosmoNest with CosmoMC: why this "Error in opening the Library module file. [DFWIN]"

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Jie Ren
Posts: 28
Joined: May 13 2006
Affiliation: Theoretical Physics Division, Chern Institute of Mathematics, Nankai University, Tianjin, China

CosmoNest with CosmoMC: why this \"Error in opening the

Post by Jie Ren » September 22 2006

Hello, I want to use CosmoNest with CosmoMC. After I put nested.f90 and driver.f90 in the directory "source" of CosmoMC, and added nested.o in Makefile, an error occurred when I run make. Why this error? Thanks a lot for any helps!

[root@localhost source]# make all
ifort -O2 -I/root/ren/cfitsio/include -I/root/ren/Healpix_2.01/include -I/root/ren/wmap_likelihood -I../camb -c driver.f90
fortcom: Warning: driver.f90, line 31: Bad # preprocessor line
#ifdef MPI
-^
fortcom: Warning: driver.f90, line 37: Bad # preprocessor line
#endif
-^
fortcom: Warning: driver.f90, line 40: Bad # preprocessor line
#ifndef MPI
-^
fortcom: Warning: driver.f90, line 43: Bad # preprocessor line
#endif
-^
fortcom: Warning: driver.f90, line 52: Bad # preprocessor line
#ifdef MPI
-^
fortcom: Warning: driver.f90, line 73: Bad # preprocessor line
#endif
-^
fortcom: Warning: driver.f90, line 85: Bad # preprocessor line
#ifdef MPI
-^
fortcom: Warning: driver.f90, line 101: Bad # preprocessor line
#endif
-^
fortcom: Warning: driver.f90, line 317: Bad # preprocessor line
#ifdef RUNIDLE
-^
fortcom: Warning: driver.f90, line 319: Bad # preprocessor line
#endif
-^
fortcom: Warning: driver.f90, line 348: Bad # preprocessor line
#ifdef RUNIDLE
-^
fortcom: Error: driver.f90, line 6: Error in opening the Library module file. [NESTED]
use Nested
------------^
fortcom: Error: driver.f90, line 36: This name does not have a type, and must have an explicit type. [MPI_SUCCESS]
if (ierror/=MPI_SUCCESS) stop 'MPI fail: rank'
-------------^
fortcom: Error: driver.f90, line 55: This name does not have a type, and must have an explicit type. [MPI_COMM_WORLD]
call mpi_comm_rank(mpi_comm_world,MPIrank,ierror)
---------------------------^
fortcom: Error: driver.f90, line 71: This name does not have a type, and must have an explicit type. [MPI_CHARACTER]
CALL MPI_Bcast(InputFile, LEN(InputFile), MPI_CHARACTER, 0, MPI_COMM_WORLD, ierror)
--------------------------------------------------^
fortcom: Error: driver.f90, line 88: This name does not have a type, and must have an explicit type. [MPI_WTIME]
MPI_StartTime = MPI_WTime()
------------------------^
fortcom: Warning: driver.f90, line 359: Bad # preprocessor line
#endif RUNIDLE
-^
fortcom: Error: driver.f90, line 351: Error in opening the Library module file. [DFWIN]
USE DFWIN
--------^
compilation aborted for driver.f90 (code 1)
make: *** [driver.o] Error 1
[root@localhost source]#

Ben Gold
Posts: 81
Joined: September 25 2004
Affiliation: University of Minnesota
Contact:

CosmoNest with CosmoMC: why this \"Error in opening the

Post by Ben Gold » September 22 2006

You need to use the "-fpp" option when compiling.

Post Reply