[Mitgcm-support] The not quite packages: mom_fluxform & mom_vecinv

mitgcm-support at dev.mitgcm.org mitgcm-support at dev.mitgcm.org
Wed Jul 9 15:31:17 EDT 2003


Hi all,

In case you hadn't noticed, the calc_mom_rhs.F have disappeared and run-time
control of mom_fluxform/mom_vecinc has been added.

I had trouble deciding how to control flux-form versus vector invariant code.

The standard package stuff is too restrictive - the momentum equations
aren't optional for a forward run but at the same time it should be possible
to disable both for the purposes of off-line tracer calculations
(momStepping=.False.).
The default should be for them to exist. Adding them to data.pkg is contrary to
this.

Here's what I've done:

Since momStepping exists, a switch is all we need to select between FF and VI.
 - vectorInvariantMomentum defaults to false and in PARM01
The code can be CPP'd out using -disable option to genmake.
 - It uses -DDISABLE_* on the cpp command-line rather than #define. This is how
   many config.h programs do it.
 - Also, I refuse to add anything more to CPP_OPTIONS.h.

Anyone upset by this?

A.



More information about the MITgcm-support mailing list