[MITgcm-devel] Re: package plume

Jean-Michel Campin jmc at ocean.mit.edu
Wed Nov 28 09:00:53 EST 2007


Hi Dimitris, 

This is an interesting question.
Concerning routines that are in pkg/mypackage, it's not necessary to
add thoses #ifdef ALLOW_MYPACKAGE. 
However, I noticed that when I have to modified 1 one those S/R and 
put the modified copy into my local "code" directory, then it generally 
breaks the compilation if I decide not to compile the package anymore.
And since it does not cost much to add those #ifdef,
it could be a good idea to have them in each S/R.
But you can see that for many packages, we quiet often
don't have those #ifdef.

Cheers,
Jean-Michel

On Tue, Nov 27, 2007 at 02:35:40PM -0800, Dimitris Menemenlis wrote:
> Jean-Michel, are the
> 
> #ifdef ALLOW_MYPACKAGE  /  #endif /* ALLOW_MYPACKAGE */
> 
> that are around "some" of the routine in pkg/mypackage needed?
> 
> Won't these routines be added to compile list by genmake,
> if and only #ifdef ALLOW_MYPACKAGE  ?
> 
> D.
> 
> -- 
> Dimitris Menemenlis <menemenlis at sbcglobal.net>
> 5056 Oakwood Ave, La Canada, CA 91011-2450
> tel/fax: 818-790-6735;   cell: 818-625-6498



More information about the MITgcm-devel mailing list