compiling error: ANALYTICAL cpp option

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
nencio

compiling error: ANALYTICAL cpp option

#1 Unread post by nencio »

hi,

I'm trying to compile ROMS using the following cpp options:
ftp://ucsbuxa.ucsb.edu/opl/fnenc/ROMS/hawaii_spinup.h

The error I'm getting is the following:
ftp://ucsbuxa.ucsb.edu/opl/fnenc/ROMS/ANALYTICAL_error

I need the function ana_nudgcoef because I'm using radiative open boundary conditions with nudging, and the function ana_srflux to have a daily shortwave radiation cycle.

The problem seems to be related to the fact that these functions should be included in the analytical package analytical.F, but this file is compiled only if the cpp flag ANALYTICAL is defined.

This flag is defined in the file globaldefs.h only if at least one of the ANA_* flags is defined. In my case I don't need to define any of those (that's at least what I think...), but I still need the two functions to be included in analytical.F.

Am I doing something wrong, or few more conditions (like "if defined NUDGING_COFF or defined DIURNAL_SRFLUX") should be added to the globaldefs.h file to define the option ANALYTICAL??

thank you,
francesco

Post Reply