[Mitgcm-support] Re: mitgcm with limited memory

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


Arne,

First trick is to "disable" unused packages. e.g.

 genmake -disable=mom_vecinv,ptracers,shap_filt,zonal_filt,gmredi,kpp,flt

This should reduce the size of the executable:

% size mitgcmuv 
   text    data     bss     dec     hex filename
 603413   33068 28024384        28660865        1b55481 mitgcmuv

Fourth number is size in decimal.

% nm --size-sort -t d mitgcmuv
...
00343040 B orlanski_store__
00462336 B tdfields_
00528384 B gw_r__
00528384 B sfp3d_common_r8__
00726016 B cg3d_wk_r__
00792576 B tr1_r__
01585184 B cg3d_r__
03203328 B tave_statevars__
03469568 B grid_r__
03500544 B dynvars_r__

This (at least in Linux) shows the memory assigned to each symbol. The ones you
see
above are the common blocks. DYNVARS_R is approximate 13* a 3-D array (include
the
overlaps).
This will show you what is using up the memory and things that might appear are
tave and cg3d which can both be turned off.

Also, are you using the C-D scheme or non-hydrostatic? If not #undef them since
they use six plus one 3-D arrays.

A.



More information about the MITgcm-support mailing list