[MITgcm-devel] mnc warning messages

Ed Hill ed at eh3.com
Tue Apr 4 16:26:24 EDT 2006


On Tue, 2006-04-04 at 22:07 +0200, mlosch at awi-bremerhaven.de wrote:
> Hello,
> 
> I have to admit that these warning messages of the type:
> "MNC_CW_ADD_VATTR_ANY WARNING: attribute value 'Merid. Planetary Coriolis Acceleration (f x U)' has more than     
> 40 characters and has been truncated to fit"
> are a little annoying as the appear with every single run, because even the long_name attributes of the grid.nc files are 
> longer than 40 characters. I would suggest either increasing this limit, so that the name that "we" have created fit and the 
> warning is only issued if someone introduces now variables names, or change the variable names of the standard 
> variables (such as the grid parameters) so that they fit the 40 char limit.

Hi Martin,

The really-quick-fix is to increase the size of:

      parameter ( MNC_MAX_CHAR =     40 )

in pkg/mnc/MNC_SIZE.h to 80+ characters.  And the downside of that
quick-fix is that MNC will consume a lot more RAM.  But perhaps thats OK
for you.

After a few off-list complaints, I drastically reduced the memory
footprint of MNC by shrinking the size of most strings within the lookup
tables.  The change also improved path handling for filenames--much
longer paths are now allowed.  But the change also caused the above
warnings.  I'm working on a modification that will increase the size of
the text strings used for attributes (while keeping the other strings at
the current, shorter size) and will check it in soon.

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