[ncl-talk] possible addfile memory leak
Andy Penny
andybpenny at gmail.com
Thu Jul 13 16:14:04 MDT 2017
Hi all,
I've encountered a memory issue when opening grib files in a loop using
NCL's "addfile" function. Memory usage increases over time, even when I
delete the file. I've copied a sample script below to demonstrate this. Is
this normal behavior for the "addfile" function? And if so, does anyone
know of a way to avoid this issue? I'm using NCL v6.4, binaries from:
ncl_ncarg-6.4.0-RHEL6.4_64bit_nodap_gnu447.tar.gz
Thanks,
Andy
---------------------------------------------------------
gribfile= "/data2/gfs/2017/20170710/gfs.20170710t12z.pgrb2f120.grib2"
do j = 0, 1000000
do i = 0, 1000000
a = addfile(gribfile, "r")
delete(a)
end do
end do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170713/ad068acd/attachment.html
More information about the ncl-talk
mailing list