[MITgcm-devel] NML_TERMINATOR
Ed Hill
ed at eh3.com
Thu Nov 17 14:58:57 EST 2005
On Thu, 2005-11-17 at 14:30 -0500, Constantinos Evangelinos wrote:
> On Thursday 17 November 2005 14:05, Martin Losch wrote:
> > Samar,
> >
> > the NML_TERMINATOR option works only, if all namelists are terminated
> > by ' &' exactly. Only if there is something like ' &end', then the
> > subroutine eesupp/src/nml_set_terminator.F fails and I get the error
> > messages below. (I haven't tried it on a mac, I have to admit.)
> >
> > Ed,
> > thanks for taking care of this.
>
> I use the following commands from within the MITgcm directory to fix all data
> files:
>
> perl -i -pe 's/ \&$/ \//g' verification/*/input*/data*
> perl -i -pe 's/ \&$/ \//g' verification/*/input*/eedata
> perl -i -pe 's/ \&end$/ \//g' verification/*/input*/data*
> perl -i -pe 's/ \&end$/ \//g' verification/*/input*/eedata
> perl -i -pe 's/^ \& / \//g' verification/*/input*/data*
> perl -i -pe 's/^ \& / \//g' verification/*/input*/eedata
Hi folks,
It'd be nice if we could all be a bit smarter and write code that "just
works" rather than having a bunch of ad-hoc shell scripts that aren't
documented except in our devel-list archives. The NML_TERMINATOR code
gets us most of the way there but perhaps a few machines still have
trouble with it?
So could you folks *please* document where the namelists aren't working
smoothly by sending a quick email to this list:
the machine type or machine name
the C-preprocessor used
the compiler used
and/or the specific namelist file that was problematic
and perhaps we can figure out a way to make the NML_TERMINATOR code
completely portable?
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