[MITgcm-devel] the perfect package

Ed Hill ed at eh3.com
Mon Dec 27 12:56:53 EST 2004


On Mon, 2004-12-27 at 09:37 -0800, Dimitris Menemenlis wrote: 
> MIT czars, two questions:
> 
> 1) I am in process of adding a seaice_summary routine and was wondering if 
> there is one (or more) "perfect standard" package (or packages) that should 
> be used as a template for desirable MITgcm programming practices?

Hi Dimitris,

I don't think there is a "perfect standard" package.  ;-)

Jean-Michel thinks GMRedi is close to being a "good example".


> 2) Are the "#ifdef ALLOW_PKGNAME" that enclose all routines in some older 
> packages, e.g., seaice and kpp, still needed?

You only need to enclose the *external* calls (that is, calls into
package that are located in routines in the main code or in other
packages) with the "#ifdef ALLOW_PKGNAME" statements.  The actual code
within the package itself generally doesn't need these ifdef-s since
genmake2 will exclude/include these files based upon whether the package
is active or not.

Ed

-- 
Edward H. Hill III, PhD
office:  MIT Dept. of EAPS;  Rm 54-1424;  77 Massachusetts Ave.
             Cambridge, MA 02139-4307
emails:  eh3 at mit.edu                ed at eh3.com
URLs:    http://web.mit.edu/eh3/    http://eh3.com/
phone:   617-253-0098
fax:     617-253-4464




More information about the MITgcm-devel mailing list