COAWST Compiling cowastM failed

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
whiteliu
Posts: 2
Joined: Thu Dec 31, 2015 1:05 pm
Location: National Sun Yat-sen University

COAWST Compiling cowastM failed

#1 Unread post by whiteliu »

Dear seniors,

I am attempting to compile the project in COAWST. (ubuntu 22.04 + gfortran + mpich2)
The same setting can be compiled and runned normally for the case of "Rip_current".
However, I got an error while compiling the case of "Sandy" as shown below.

----------------------------------------------------------------------------------------------------------------------------------------------------
cd /home/white/COAWST/diy/Sandy/Build; /usr/bin/mpif90 -c -frepack-arrays -fallow-argument-mismatch -O3 -ffast-math -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -I/usr/local/include/ -I/home/white/COAWST/WRF/main -I/home/white/COAWST/WRF/external/esmf_time_f90 -I/home/white/COAWST/WRF/frame -I/home/white/COAWST/WRF/share master.f90
master.f90:26:11:

26 | USE module_wrf_top, ONLY : wrf_init
| 1
Fatal Error: Cannot open module file ‘module_wrf_top.mod’ for reading at (1): No such file or directory
compilation terminated.
make: *** [Master/Module.mk:25: /home/white/COAWST/diy/Sandy/Build/master.o] Error 1
make: *** Waiting for unfinished jobs....
----------------------------------------------------------------------------------------------------------------------------------------------------
Attached are the coawst.bash file and the compilation messages in build.log.
Could anyone please provide guidance on how to resolve this issue? Thanks.
Attachments
coawst.bash
(20.97 KiB) Downloaded 261 times
build.log
(526.78 KiB) Downloaded 286 times

jcwarner
Posts: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: COAWST Compiling cowastM failed

#2 Unread post by jcwarner »

For compile errors with coawst, please submit them to
https://github.com/jcwarner-usgs/COAWST/issues

i took a quick look at your compile log. there are lots of issues.
first, it shows
"f951: Warning: Nonexistent include directory ‘/main’ [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory ‘/external/esmf_time_f90’ [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory ‘/frame’ [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory ‘/share’ [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory ‘/main’ [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory ‘/external/esmf_time_f90’ [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory ‘/frame’ [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory ‘/share’ [-Wmissing-include-dirs]"
so maybe you dont have the full set of code?

second it then says
*****************************************************************************
No environment variable NETCDF set.
Stopping
*****************************************************************************
You need to set the NETCDF env var.

I suggest you look in the COAWST user doc. there is lots of good information in there on how to set up your env and to run the sandy case.
if you have more troubles for the coupling then post that on the coawst site.
-john

whiteliu
Posts: 2
Joined: Thu Dec 31, 2015 1:05 pm
Location: National Sun Yat-sen University

Re: COAWST Compiling cowastM failed

#3 Unread post by whiteliu »

Thanks John.
Follow the user manual, install netCDF-C 4.9.2 and netCDF-FORTRAN 4.6.1 to the same directory, and set the NETCDF, NETCDF_INCLUDE and NETCDF_LIB paths in the bash file. It worked!!!

By the way, in coawst.bash,
move "export =${MY_ROMS_SRC}/WRF" before "make mct_params" to avoid Warning below:
f951: Warning: Nonexistent include directory ‘/main’ [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory ‘/external/esmf_time_f90’ [-Wmissing-include-dirs]
...

Post Reply