Error to compile WRF+SWAN

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
manhnt181
Posts: 33
Joined: Wed Feb 03, 2021 5:07 pm
Location: Institute of Geophysics

Error to compile WRF+SWAN

#1 Unread post by manhnt181 »

Hi everyone,
I'm compiling COAWSTv3.7 model with WRF+SWAN option, I got the error like that:

Code: Select all

get_wrf_moving_grids.f90(49): error #6404: This name does not have a type, and must have an explicit type.   [A2ONAME]
            nc_name=A2Oname(ia,1)
--------------------^
get_wrf_moving_grids.f90(49): error #6054: A CHARACTER data type is required in this context.   [A2ONAME]
            nc_name=A2Oname(ia,1)
--------------------^
compilation aborted for get_wrf_moving_grids.f90 (code 1)
make: *** [Build/get_wrf_moving_grids.o] Error 1
make: *** Waiting for unfinished jobs....
The log file of compiling process and the project file are attached in the below.
Please help me to resolve this problem.
Thanks all,
Bests,
Manh
Attachments
sandy.h.txt
(2.22 KiB) Downloaded 392 times
build.log.txt
(1.49 MiB) Downloaded 331 times

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

Re: Error to compile WRF+SWAN

#2 Unread post by jcwarner »

ok. so you have set

#undef ROMS_MODEL
#undef NESTING
#define WRF_MODEL
#define SWAN_MODEL
#undef WW3_MODEL
#define MCT_LIB
#define MCT_INTERP_OC2AT
#define MCT_INTERP_WV2AT
#define MCT_INTERP_OC2WV

if you only use swan and wrf, then you do not need INTERP_OC2AT or INTERP_OC2WV
so set this as

#undef ROMS_MODEL
#undef NESTING
#define WRF_MODEL
#define SWAN_MODEL
#undef WW3_MODEL
#define MCT_LIB
#undef MCT_INTERP_OC2AT
#define MCT_INTERP_WV2AT
#undef MCT_INTERP_OC2WV

and recompile. I am working to remove those flags, but they are needed for now.
https://github.com/jcwarner-usgs/COAWST/issues
if you have more troubles, since this is the coupled system, please post an issue here:

thanks,
john

Post Reply