<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Okay, thanks for the link Dave, I'll try the bug fix. It definitely sounds like the same issue. </div><div><br></div><div>Take care,</div><div>Andy</div><div><br>On Jul 13, 2017, at 6:45 PM, Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov">dave.allured@noaa.gov</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Andy,<div><br></div><div>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:</div><div><br></div><div><a href="http://mailman.ucar.edu/pipermail/ncl-talk/2017-June/009360.html" target="_blank">http://mailman.ucar.edu/<wbr>pipermail/ncl-talk/2017-June/<wbr>009360.html</a></div><div><br></div><div>--Dave<div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 13, 2017 at 4:14 PM, Andy Penny <span dir="ltr"><<a href="mailto:andybpenny@gmail.com" target="_blank">andybpenny@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Hi all,<br><br></div>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_<wbr>nodap_gnu447.tar.gz<br></div><div><br></div>Thanks,<br></div>Andy<br><div><div><br>------------------------------<wbr>---------------------------<br>gribfile= "/data2/gfs/2017/20170710/gfs.<wbr>20170710t12z.pgrb2f120.grib2"<br><br>do j = 0, 1000000<br> do i = 0, 1000000<br><br>a = addfile(gribfile, "r")<br><br>delete(a)<br><br> end do<br>end do</div></div></div></blockquote></div></div></div></div>
</div></blockquote></body></html>