self-emerging cpp option

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
andreykoch

self-emerging cpp option

#1 Unread post by andreykoch »

Hello, ROMS community!

I have experienced a strange behaviour of the ROMS_3.0 which code I updated recently (trunk 186). When I compile an executable file oceanM it recognizes the cpp option UV_C4VADVECTION as defined though I do not define it in my header file. When I am working with my old version of ROMS_3.0 (trunk 79) I do not encounter such a problem.

My cpp list from the header file:
#define NL_MODEL
#define UV_ADV
#define DJ_GRADPS /* Splines density Jacobian (Shchepetkin, 2000) */
#define UV_COR
#define UV_QDRAG
#define UV_VIS2
#define MIX_S_UV
#define MIX_ISO_TS
#define TS_DIF2
#define TS_U3HADVECTION
#define TS_C4VADVECTION
#define SOLVE3D
#define SALINITY
#define NONLIN_EOS
#define CURVGRID
#define SPLINES
#define MASKING
/* Select only one vertical turbulence closure option */
#define MY25_MIXING
/* Surface boundary condition settings */
/* I have Uwind, Vwind, Tair, Pair, Qair, */
/* short wave radition flux and rain */
#define BULK_FLUXES
#ifdef BULK_FLUXES
# define LONGWAVE /* undef to read net longwave, define to use Berliand */
# undef LONGWAVE_OUT /* define to read downward longwave, compute outgoing */
# define DIURNAL_SRFLUX /* impose shortwave radiation local diurnal cycle */
# undef ANA_SRFLUX /* analytical surface shortwave radiation flux */
# undef ALBEDO /* use albedo equation for shortwave radiation */
# define ANA_CLOUD /* analytical cloud fraction => zero cloud */
# define SOLAR_SOURCE /* solar shortwave distributed over water column */
# undef EMINUSP /* turn ON internal calculation of E-P */
# define ANA_RAIN /* zero rain, with eminusp option can use ncep rain data */
# define ANA_SSFLUX /* analytical surface salinity flux */
#else
# define ANA_SMFLUX /* analytical surface momentum stress */
# define ANA_STFLUX /* analytical surface temperature flux */
# define ANA_SSFLUX /* analytical surface salinity flux */
#endif
/* Bottom boundary condition settings */
#define ANA_BSFLUX
#define ANA_BTFLUX
/* Lateral boundaries */
/* Begin open boundary condition settings */
#define EASTERN_WALL
#define NORTH_M2FLATHER
#define SOUTH_M2FLATHER
#define WEST_M2FLATHER
#define NORTH_FSCHAPMAN
#define SOUTH_FSCHAPMAN
#define WEST_FSCHAPMAN
#define RADIATION_2D /* Tangential phase speed in radiation conditions */
#define NORTH_M3RADIATION /* Western edge, 3D momentum, radiation condition */
#define SOUTH_M3RADIATION /* Western edge, 3D momentum, radiation condition */
#define WEST_M3RADIATION /* Western edge, 3D momentum, radiation condition */
#define NORTH_M3NUDGING /* Western edge, 3D momentum, passive/active term */
#define SOUTH_M3NUDGING /* Western edge, 3D momentum, passive/active term */
#define WEST_M3NUDGING /* Western edge, 3D momentum, passive/active term */
#define NORTH_TRADIATION /* Western edge, tracers, radiation condition */
#define SOUTH_TRADIATION /* Western edge, tracers, radiation condition */
#define WEST_TRADIATION /* Western edge, tracers, radiation condition */
#define NORTH_TNUDGING /* Western edge, tracers, passive/active term */
#define SOUTH_TNUDGING /* Western edge, tracers, passive/active term */
#define WEST_TNUDGING /* Western edge, tracers, passive/active term */
#define SPONGE
#define ASSUMED_SHAPE
#define DOUBLE_PRECISION
#define POWER_LAW
#define PROFILE
#define K_GSCHEME
#define UV_U3HADVECTION
#define VAR_RHO_2D
and cpp list from my output file:

ANDREY_TEST CTZ3km, Apr-Aug 2002 run
ANA_BSFLUX Analytical kinematic bottom salinity flux.
ANA_BTFLUX Analytical kinematic bottom temperature flux.
ANA_CLOUD Analytical cloud fraction.
ANA_RAIN Analytical rain fall rate.
ANA_SSFLUX Analytical kinematic surface salinity flux.
ASSUMED_SHAPE Using assumed-shape arrays.
BULK_FLUXES Surface bulk fluxes parametererization.
CURVGRID Orthogonal curvilinear grid.
DIURNAL_SRFLUX Modulate shortwave radiation by the local diurnal cycle.
DJ_GRADPS Parabolic Splines density Jacobian (Shchepetkin, 2002).
DOUBLE_PRECISION Double precision arithmetic.
EASTERN_WALL Wall boundary at Eastern edge.
LONGWAVE Compute net longwave radiation internally.
MASKING Land/Sea masking.
MIX_ISO_TS Mixing of tracers along isopycnal surfaces.
MIX_S_UV Mixing of momentum along constant S-surfaces.
MPI MPI distributed-memory configuration.
MY25_MIXING Mellor/Yamada Level-2.5 mixing closure.
NONLINEAR Nonlinear Model.
NONLIN_EOS Nonlinear Equation of State for seawater.
NORTH_FSCHAPMAN Northern edge, free-surface, Chapman condition.
NORTH_M2FLATHER Northern edge, 2D momentum, Flather condition.
NORTH_M3NUDGING Northern edge, 3D momentum, passive/active outflow/inflow.
NORTH_M3RADIATION Northern edge, 3D momentum, radiation condition.
NORTH_TNUDGING Northern edge, tracers, passive/active outflow/inflow.
NORTH_TRADIATION Northern edge, tracers, radiation condition.
POWER_LAW Power-law shape time-averaging barotropic filter.
PROFILE Time profiling activated .
K_GSCHEME Third-order upstream advection of TKE fields.
RADIATION_2D Use tangential phase speed in radiation conditions.
!RST_SINGLE Double precision fields in restart NetCDF file.
SALINITY Using salinity.
SOLAR_SOURCE Solar Radiation Source Term.
SOLVE3D Solving 3D Primitive Equations.
SOUTH_FSCHAPMAN Southern edge, free-surface, Chapman condition.
SOUTH_M2FLATHER Southern edge, 2D momentum, Flather condition.
SOUTH_M3NUDGING Southern edge, 3D momentum, passive/active outflow/inflow.
SOUTH_M3RADIATION Southern edge, 3D momentum, radiation condition.
SOUTH_TNUDGING Southern edge, tracers, passive/active outflow/inflow.
SOUTH_TRADIATION Southern edge, tracers, radiation condition.
SPLINES Conservative parabolic spline reconstruction.
SPONGE Enhanced horizontal mixing in the sponge areas.
TS_U3HADVECTION Third-order upstream horizontal advection of tracers.
TS_C4VADVECTION Fourth-order centered vertical advection of tracers.
TS_DIF2 Harmonic mixing of tracers.
UV_ADV Advection of momentum.
UV_COR Coriolis term.
UV_U3HADVECTION Third-order upstream horizontal advection of 3D momentum.
UV_C4VADVECTION Fourth-order centered vertical advection of momentum.
UV_QDRAG Quadratic bottom stress.
UV_VIS2 Harmonic mixing of momentum.
VAR_RHO_2D Variable density barotropic mode.
WEST_FSCHAPMAN Western edge, free-surface, Chapman condition.
WEST_M2FLATHER Western edge, 2D momentum, Flather condition.
WEST_M3NUDGING Western edge, 3D momentum, passive/active outflow/inflow.
WEST_M3RADIATION Western edge, 3D momentum, radiation condition.
WEST_TNUDGING Western edge, tracers, passive/active outflow/inflow.
WEST_TRADIATION Western edge, tracers, radiation condition.
All comments would be appreciable,

Andrey

User avatar
arango
Site Admin
Posts: 1367
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: self-emerging cpp option

#2 Unread post by arango »

This is fine. It implies that you are using the default vertical advection for momentum. This is the usual behavior. Now, we just make sure that this is reported. If you are curious, check file checkdefs.F.

Post Reply