An ocean_coupler problem when compiled

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
HONGWANG
Posts: 14
Joined: Wed Jan 19, 2022 1:52 pm
Location: UM

An ocean_coupler problem when compiled

#1 Unread post by HONGWANG »

Hi,

I met an ocean_coupler problem when I ran the WRF-ROMS coupling case. I can run ROMS or WRF alone successifully while when ran the ROMS alone with some ANA_ force field setting in the .h file. My head file setting as below (by the way, I also post this question in the coawst website on https://github.com/jcwarner-usgs/COAWST/issues/76 ):

#define ROMS_MODEL
#define WRF_MODEL
#undef NESTING
#define MCT_LIB
#define ATM2OCE_FLUXES
/Physics + numerics/
#undef LOG_PROFILE
#define UV_ADV
#define UV_COR
#define UV_LOGDRAG
#define SALINITY
#define SOLVE3D
#define SPHERICAL
#undef SEDIMENT
/Grid and Initial/
#define MASKING
/Turbulence closure/
#undef SPLINES
#undef ANA_VMIX
#define GLS_MIXING
#ifdef GLS_MIXING

define KANTHA_CLAYSON
define N2S2_HORAVG
#endif

/Forcing/
#undef ANA_SSFLUX
#undef LONGWAVE_OUT
#undef BULK_FLUXES
#define ANA_BTFLUX
#define ANA_BSFLUX
#define EMINUSP
#define SOLAR_SOURCE

Then I did the weight_coawst.nc file and when I coupled them and compiled the coawst.bash file, I met the wrong information as belows:
Error: 'lrflx' at (1) is not a member of the 't_forces' structure
ocean_coupler.f90:832.28:

FORCES(ng)%lrflx(i,j)=FORCES(ng)%lrflx(i,j)+cff*fac
1
Error: 'lrflx' at (1) is not a member of the 't_forces' structure
ocean_coupler.f90:838.28:

FORCES(ng)%lrflx(i,j)=FORCES(ng)%lrflx(i,j)-BBR*fac
1
Error: 'lrflx' at (1) is not a member of the 't_forces' structure
ocean_coupler.f90:863.27:

FORCES(ng)%rain(i,j)=cff
1
Error: 'rain' at (1) is not a member of the 't_forces' structure
ocean_coupler.f90:865.27:

FORCES(ng)%rain(i,j)=FORCES(ng)%rain(i,j)+cff
...

The attachment is my the wrong information and I would appreciate it if anyone could give me some guidance!
Attachments
wrong information.PNG

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

Re: An ocean_coupler problem when compiled

#2 Unread post by jcwarner »

sorry. i think you posted a message on the coawst issues and i did not get back to you.
i think you have a misspelled cpp def

define ATM2OCE_FLUXES
should be
define ATM2OCN_FLUXES

then do a ./coawst.bash and see if that compiles better.
-john

HONGWANG
Posts: 14
Joined: Wed Jan 19, 2022 1:52 pm
Location: UM

Re: An ocean_coupler problem when compiled

#3 Unread post by HONGWANG »

Dear jcwarner,

Thanks for your reply! it really helped me! I'm sorry I made such a spelling mistake. And then I added MCT_INTERP_OC2AT in the head file, the case worked!

Thank you and best regards!
Hong

Post Reply