problems with NUDGING and SPONGE CPP options

Facts, news, and guidance about ROMS software

Moderators: arango, robertson

Post Reply
Message
Author
cecilia
Posts: 41
Joined: Thu Aug 16, 2007 9:10 pm
Location: DGF - UChile
Contact:

problems with NUDGING and SPONGE CPP options

#1 Unread post by cecilia »

I was running make to compile ROMS 3.0 and each time I defined SPONGE option and / or ZCLM_NUDGING, M2CLM_NUDGING, M3CLM_NUDGING, TCLM_NUDGING options the compilation was aborted indicating an ERROR 1.

If I have defined SPONGE the message specified something like.

... in function 'initial_'..... undefined reference to 'ana_hmixcoef_' Error 1

If I have defined the above Nudging options the message specified:

... in function 'initial_'... undefined reference to 'ana_nudgcoef_' Error 1

A) I could not find notes about this options. Someone could send me notes or explain to me how to solve the problem I having with these CPP OPTIONS ?

B) What is NUDGING_COFF ? It is not in cppdefs.h but it appears in some files of ROMS 3.0.

C) Where could I read about NUDGING and SPONGE in ROMS 3.0 ?

Bye and best whishes

Cecilia

cecilia
Posts: 41
Joined: Thu Aug 16, 2007 9:10 pm
Location: DGF - UChile
Contact:

#2 Unread post by cecilia »

I solved the problem defining ANALYTICAL in my ROMS header file after I checked that analytical.F (in ROMS/Functional) have that condition to include header files ana_hmixcoef.h and ana_nudgcoef.h

Someone could tell me if that is correct or if there is another solution ?

Bye and thanks

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

#3 Unread post by kate »

There's a block of checks in globaldefs.h in which ANALYTICAL gets defined if any one of the ANA_ flags is defined. The tests in analytical.F are:

Code: Select all

# if defined VISC_GRID || defined DIFF_GRID || defined SPONGE
#  include <ana_hmixcoef>
# endif
and

Code: Select all

# if defined NUDGING_COFF
#  include <ana_nudgcoef>
# endif
These four flags should be added to the tests in globaldefs.h. This should also be reported to the bug reporting system (which I can do).

cecilia
Posts: 41
Joined: Thu Aug 16, 2007 9:10 pm
Location: DGF - UChile
Contact:

#4 Unread post by cecilia »

Thanks Kate for your confirmation. Effectively I had checked in the globaldefs.h file that tests were lacking.

Post Reply