[ncl-talk] possible addfile memory leak
Dave Allured - NOAA Affiliate
dave.allured at noaa.gov
Thu Jul 13 16:45:10 MDT 2017
Andy,
This is probably the same grib2 memory leak that was reported and fixed
last month. You can download an NCL development version that includes this
bug fix. Please see this conversation for download instructions and other
details:
http://mailman.ucar.edu/pipermail/ncl-talk/2017-June/009360.html
--Dave
On Thu, Jul 13, 2017 at 4:14 PM, Andy Penny <andybpenny at gmail.com> wrote:
> 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/56245baa/attachment.html
More information about the ncl-talk
mailing list