Error when compiling with M3CLM_NUDGING and ANA_M3CLIMA

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
LauraB
Posts: 23
Joined: Mon Jul 30, 2007 9:13 pm
Location: Dalhousie University
Contact:

Error when compiling with M3CLM_NUDGING and ANA_M3CLIMA

#1 Unread post by LauraB »

Hi community,

I'm trying a run with nudging to climatology for tracers and 3D momentum, i.e. cpp options:

Code: Select all

#define TCLM_NUDGING
#define M3CLM_NUDGING
#define ANA_NUDGCOEF
#define ANA_TCLIMA
#define ANA_M3CLIMA
#undef TCLIMATOLOGY
#undef M3CLIMATOLOGY
I get the following error:
rhs3d.f90:110.39:

& CLIMA(ng) % uclm, &
1
Error: 'uclm' at (1) is not a member of the 't_clima' structure
make: *** [Build/rhs3d.o] Error 1


Compilation works if I define M3CLIMATOLOGY instead of ANA_M3CLIMA... Any suggestions?

Thanks!
Laura

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Error when compiling with M3CLM_NUDGING and ANA_M3CLIMA

#2 Unread post by kate »

LauraB wrote:Hi community,

I'm trying a run with nudging to climatology for tracers and 3D momentum, i.e. cpp options:

Code: Select all

#define TCLM_NUDGING
#define M3CLM_NUDGING
#define ANA_NUDGCOEF
#define ANA_TCLIMA
#define ANA_M3CLIMA
#undef TCLIMATOLOGY
#undef M3CLIMATOLOGY
Your problem is here - you need to #define TCLIMATOLOGY to make that storage available to the model. Likewise, #define M3CLIMATOLOGY.

LauraB
Posts: 23
Joined: Mon Jul 30, 2007 9:13 pm
Location: Dalhousie University
Contact:

Re: Error when compiling with M3CLM_NUDGING and ANA_M3CLIMA

#3 Unread post by LauraB »

Thanks Kate!

from a previous post (viewtopic.php?f=1&t=709) I had understood that TCLIMATOLOGY (or M3CLIMATOLOGY) was used when a netcdf file was given to provide the climatological data, while ANA_**CLIMA was used when the clim data was an analytical function...
But with both defined, it runs and does not ask for a climatological .nc file, so it sounds good to me! :)

Regards,
Laura

Post Reply