Hi,
I don't think it's anything to do with the format of the netcdf
file unless you are getting a huge value of the dimension. You
might want to print out n like Nic suggested.
There's also a utility that lets you know how much memory you are
using. You could make a call just before the allocation to see if
you are running close to your limits.
In the thread
https://groups.google.com/forum/#!topic/mom-users/OiewvCaWigI
in message 6 Zhi suggests tracking memory usage with
-----
To debug the issue, you may add the following into the code
you want to check,
use memutils_mod, only: print_memuse_stats
call print_memuse_stats(text)
Where text is input string of your choice to be used to
identify the location of the code.
------
Putting this in the code just before the crash may help.
I think you need to check how much memory you are requesting in
your batch job and how much is available. You are probably running
into some local system issues.
Information that will help is:
What is the size of you problem how many cpus and how much memory
are you requesting?
You systems people should have some log file that may help you.
Cheers,
Russ