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!
An ocean_coupler problem when compiled
Re: An ocean_coupler problem when compiled
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
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
Re: An ocean_coupler problem when compiled
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
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