Re: ncl memory

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Feb 13 2012 - 08:29:35 MST

Elody,

Since this is a long script, it may help if you delete variables that you no longer need as soon as you can. This will free up memory for later variables.

You can use "delete" to accomplish this:

   delete(x)
   delete(y)

If you have NCL V6.0.0, then you can delete the variables with one statement:

   delete([/x,y/])

--Mary

On Feb 13, 2012, at 7:40 AM, Dennis Shea wrote:

> Failed:[errno=12]:Cannot allocate memory
>
> Most likely, you do not have enough available physical memory
> on your computer to store the data you are reading.
>
> On 2/13/12 5:07 AM, elodyfluck@orange.fr wrote:
>> Hello NCL users,
>>
>> I wrote a long script with reading in many files. After reading in 9
>> files, I have a fatal error:
>>
>>
>> fatal:NclMalloc Failed:[errno=12]:Cannot allocate memory
>> fatal:New: could not create new array:[errno=12]:Cannot allocate memory
>> fatal:Execute: Error occurred at or near line 1337 in file
>> $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>>
>> fatal:Execute: Error occurred at or near line 376 in file diffwindspeed.ncl
>>
>> Do you know what's happened here?
>>
>> Thanks
>>
>> Elody
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Feb 13 08:29:50 2012

This archive was generated by hypermail 2.1.8 : Fri Feb 17 2012 - 08:50:10 MST