[ncl-talk] A Fatal Error Question: is this a bug in NCL?
Barry Lynn
barry.h.lynn at gmail.com
Mon Jul 17 11:40:29 MDT 2017
Hi Rick:
Thank you for your suggestion.
Could you please give me some guidelines on how to delete resources.
I have included the script. If you can provide an example, I can take it
from there.
Thank you,
Barry
On Mon, Jul 17, 2017 at 5:22 PM, Rick Brownrigg <brownrig at ucar.edu> wrote:
> Hi Barry,
>
> On Linux, an errno=12 is an "out of memory" error. I doubt that its
> related directly to the systemfunc() call, but rather due to memory being
> consumed by your script in previous iterations of the loop. You might
> check if there are variables that can be freed (i.e., deleted()) after each
> iteration.
>
> HTH...
> Rick
>
> On Sun, Jul 16, 2017 at 8:56 PM, Barry Lynn <barry.h.lynn at gmail.com>
> wrote:
>
>> Hi:
>>
>> I have a program that does multiple loops.
>>
>> I had this error:
>>
>> 0) i_dir = 6
>>
>> fatal:systemfunc: cannot create child process:[errno=12]
>>
>> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 84 in
>> file ./plot_loop_700mb.ncl
>>
>>
>> This occurred when reading the file from the sixth directory of 20.
>>
>>
>> Here was the read from the 5th directory:
>>
>> (0) i_dir = 5
>>
>> (0) all_files(n) = /home/cust100021_vol1/barry/cu
>> st100021_vol2/GEFS/GEFS_05/gep05.t00z.pgrb2b.0p50.f084.grb
>>
>> Here is a listing of both files:
>>
>> They are both present, but the second attempted allocation/definition of
>> the file fails with the read that follows:
>>
>>
>> [barry at cust100021-login1 GEFS]$ ls -ltr /home/cust100021_vol1/barry/cu
>> st100021_vol2/GEFS/GEFS_05/gep05.t00z.pgrb2b.0p50.f084.grb
>>
>> -rw-r--r-- 1 barry cust100021 78985320 Jul 16 04:58
>> /home/cust100021_vol1/barry/cust100021_vol2/GEFS/GEFS_05/gep
>> 05.t00z.pgrb2b.0p50.f084.grb
>>
>> [barry at cust100021-login1 GEFS]$ ls -ltr /home/cust100021_vol1/barry/cu
>> st100021_vol2/GEFS/GEFS_06/gep06.t00z.pgrb2b.0p50.f084.grb
>>
>> -rw-r--r-- 1 barry cust100021 80466702 Jul 16 04:58
>> /home/cust100021_vol1/barry/cust100021_vol2/GEFS/GEFS_06/gep
>> 06.t00z.pgrb2b.0p50.f084.grb
>>
>> Here is the read:
>>
>>
>> print("i_dir = " + i_dir)
>>
>> diri = dirWRF(i_dir) + "/"
>>
>> ; define individual file read
>>
>> all_files = systemfunc("ls " + diri + "ge*pgrb2b*grb")
>>
>> print("all_files(n) = " + all_files(n))
>>
>> filename = all_files(n)
>>
>>
>> Is the problem that I make this allocation multiple times, each
>> directory, each file? Perhaps I should read all files at once into a two
>> dimensional filename array?
>>
>>
>> Thanks
>>
>>
>>
>> --
>> Barry H. Lynn, Ph.D
>> Senior Lecturer,
>> The Institute of the Earth Science,
>> The Hebrew University of Jerusalem,
>> Givat Ram, Jerusalem 91904, Israel
>> Tel: 972 547 231 170
>> Fax: (972)-25662581
>>
>> C.E.O, Weather It Is, LTD
>> Weather and Climate Focus
>> http://weather-it-is.com
>> Jerusalem, Israel
>> Local: 02 930 9525
>> Cell: 054 7 231 170
>> Int-IS: x972 2 930 9525
>> US 914 432 3108 <(914)%20432-3108>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
--
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581
C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170717/7437092a/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot_loop_700mb.ncl
Type: application/octet-stream
Size: 16936 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170717/7437092a/attachment.obj
More information about the ncl-talk
mailing list