Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error compiling COAWST #6

Closed
clairs256 opened this issue Jun 30, 2020 · 2 comments
Closed

error compiling COAWST #6

clairs256 opened this issue Jun 30, 2020 · 2 comments

Comments

@clairs256
Copy link

I keep getting the below error during the first stage of compiling COAWST. I checked the mpi.h file in the directory I had set during the MCT compile and it didn't have MPI_PROC_NULL so I used #define MPI_PROC_NULL (0). That didn't work. I then copied the mpi.h file from the openmpi module I'm using and that didn't work. Attached are mpi.h (last attempt, copied from module) and mpi_old.h (from the mct compile), coawst.bash and projects.h
coawst.zip

cd ./Build; /apps/openmpi/4.0.2/bin/mpif90 -c -fp-model precise -ip -O3 -traceback -check uni nit -I/home/549/cs8275/bin/include -I/home/549/cs8275/COAWST//WRF/main -I/home/549/cs8275/COA WST//WRF/external/esmf_time_f90 -I/home/549/cs8275/COAWST//WRF/frame -I/home/549/cs8275/COAWS T//WRF/share exchange_3d.f90
mp_exchange.f90(106): error #6404: This name does not have a type, and must have an explicit type. [MPI_PROC_NULL]
Null_Value=MPI_PROC_NULL
-----------------^
compilation aborted for mp_exchange.f90 (code 1)
make: *** [ROMS/Utility/Module.mk:15: Build/mp_exchange.o] Error 1
make: *** Waiting for unfinished jobs....

Thanks

@jcwarner-usgs
Copy link
Collaborator

this may not be the best solution, but edit
ROMS/Utility/mp_exchange.F
and change lines 113-117 from

if defined MPI

  Null_Value=MPI_PROC_NULL

else

  Null_Value=-1

endif

to
!# if defined MPI
! Null_Value=MPI_PROC_NULL
!# else
Null_Value=-1
!# endif

and see if that compiles. So older versions of mpif.h do not have mpi_proc_null defined.
-j

@clairs256
Copy link
Author

Thanks John looks like it fixed that error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants