Re: ncl memory

From: Gustavo Correa <gus_at_nyahnyahspammersnyahnyah>
Date: Mon Feb 13 2012 - 09:03:43 MST

On Feb 13, 2012, at 10:29 AM, Mary Haley wrote:

> 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.
>>

Also, in case this helps, and besides the need to delete unused variables to free memory.
If I remember right the NCL 5.2 and earlier series support up to 2GB memory only.
Whereas the NCL 6.0 and later support up to the physical memory available, but only
on 64-bit machines, right?
Gus Correa

>> 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

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

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