[MITgcm-support] runtime error
Ed Hill
ed at eh3.com
Fri Mar 2 11:26:44 EST 2007
On Fri, 02 Mar 2007 12:19:09 +0100 Martin Losch <Martin.Losch at awi.de>
wrote:
> Hi,
>
> one may add, that this happens, when Jan is trying to write his 50th
> pickup files (pickup_cd is written properly, but pickup.
> 0000008640.t001.nc is not.)
>
> Martin
>
> On 2 Mar 2007, at 11:19, Jan Saynisch wrote:
>
> > Hello
> >
> > I've encountered the following error after approx fifty years of
> > model run on a Linux cluster:
> >
> > (PID.TID 0000.0001) *** ERROR *** MNC_GET_NEXT_EMPTY_IND: array
> > size 200 exceeded--try increasing MNC_MAX_ID
> > (PID.TID 0000.0001) *** ERROR *** MNC_GET_NEXT_EMPTY_IND: occurred
> > within the 'mnc_f_names' array
> > ABNORMAL END: S/R MNC_GET_NEXT_EMPTY_IND
> > 3408.440u 533.780s 5:40:02.32 19.3% 0+0k 0+0io 354pf+0w
> >
> > What goes wrong here?
> > Thank you - Jan
Hi Jan, Martin, & Patrick,
I think I found the bug here and its really simple. Basically, there
should be a close for every file opened or we eventually run out of
file IDs within the MNC lookup tables. Looking at
MITgcm/pkg/cd_code/cd_code_write_pickup.F I see the line:
CALL MNC_FILE_CLOSE_ALL_MATCHING(fn, myThid)
which is apparently missing from the corresponding set of calls in
MITgcm/model/src/write_pickup.F.
So I've added the line locally and am testing it right now. If there
are no apparent problems, a check-in will follow shortly.
Hope that helps!
Ed
--
Edward H. Hill III, PhD | ed at eh3.com | http://eh3.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20070302/8886a5a0/attachment.sig>
More information about the MITgcm-support
mailing list