<div dir="ltr">Dave B,<div><br></div><div>That&#39;s great.  Thank you for the quick response.</div><div><br></div><div>Do you have a rough estimate for when the conda development branch access might be available?</div><div><br></div><div>--Dave A.</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 29, 2017 at 4:08 PM, David Brown <span dir="ltr">&lt;<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dave ,<br>
This leak has been fixed. If you need the new version, let us know. We<br>
are in the process of creating a system where a new build will be<br>
available the next day whenever a change has been made to the<br>
development branch of the code. This will be via the ncar conda<br>
channel.<br>
 -dave<br>
<br>
On Thu, Jun 29, 2017 at 10:21 AM, David Brown &lt;<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>&gt; wrote:<br>
&gt; Hi Dave,<br>
&gt; We will check this out.<br>
&gt;  -dave<br>
&gt;<br>
&gt; On Thu, Jun 29, 2017 at 10:09 AM, Dave Allured - NOAA Affiliate<br>
&gt; &lt;<a href="mailto:dave.allured@noaa.gov">dave.allured@noaa.gov</a>&gt; wrote:<br>
&gt;&gt; NCL team,<br>
&gt;&gt;<br>
&gt;&gt; When reading a series of grib2 files, I get a serious memory leak.  For each<br>
&gt;&gt; grib2 file of about 60 Mb size, it seems that about 15 Mb of user memory is<br>
&gt;&gt; consumed by addfile, and never released.<br>
&gt;&gt;<br>
&gt;&gt; Is this an NCL bug?  Is there a quick fix or a patch available?<br>
&gt;&gt;<br>
&gt;&gt; We tested similar scenarios with Netcdf file sets, and never saw a memory<br>
&gt;&gt; accumulation like this.<br>
&gt;&gt;<br>
&gt;&gt; I tested this with NCL 6.4.0 on two systems, and got identical behavior:<br>
&gt;&gt;<br>
&gt;&gt; * Mac OS El Capitan (10.11.6)<br>
&gt;&gt; * Linux, Centos 6.9.<br>
&gt;&gt;<br>
&gt;&gt; Following is a simple test case.  I suggest using any available grib2 data<br>
&gt;&gt; set for your own testing.  I can upload some of these grib2 files if you<br>
&gt;&gt; can&#39;t duplicate the behavior with your own files.<br>
&gt;&gt;<br>
&gt;&gt; begin<br>
&gt;&gt;   base = &quot;/Projects/Reforecast2/1985/<wbr>198501/&quot;<br>
&gt;&gt;   wildcard = &quot;198501??00/[cp]??/latlon/hgt_<wbr>pres_198501??00_???.grib2&quot;<br>
&gt;&gt;<br>
&gt;&gt;   files  = systemfunc (&quot;ls -1 &quot; + base + wildcard)<br>
&gt;&gt;   nfiles = dimsizes (files)<br>
&gt;&gt;   print (&quot;Number of files = &quot; + nfiles)<br>
&gt;&gt;<br>
&gt;&gt;   do i = 0, nfiles-1<br>
&gt;&gt;     f = addfile (files(i), &quot;r&quot;)<br>
&gt;&gt;     print (i + &quot;  &quot; + files(i))<br>
&gt;&gt;     delete (f)<br>
&gt;&gt;   end do<br>
&gt;&gt; end<br>
&gt;&gt;<br>
&gt;&gt; Thanks for looking into this.<br>
&gt;&gt;<br>
&gt;&gt; --Dave<br></blockquote></div></div></div>