Re: Memory Leak sending array to procedure that wraps gsn_csm_contour_map_ce

From: William Daniel Scheftic <scheftic_at_nyahnyahspammersnyahnyah>
Date: Thu May 17 2012 - 15:18:19 MDT

Hi Mary,

Thanks for your helpful response. I've installed the NCL V6.0.0 and
the problem has gone away.

Regards,

Bill

On Mon, May 14, 2012 at 8:26 AM, Mary Haley <haley@ucar.edu> wrote:
> Hi William,
>
> NCL V5.1.1 is almost 3 years old. We have fixed many memory leaks since then, especially in NCL V6.0.0 where we extensively ran valgrind on the code to test for memory leaks.
>
> When we get a chance, we'll try to see if there are memory leaks with the current version (NCL 6.1.0-beta, to be released soon) on your code.
>
> You shouldn't need administrative access to install NCL yourself.  You can install NCL anywhere on your computer, including anywhere under your home directory.
>
> You then just need to make sure that the NCARG_ROOT environment variable is pointing to the correct directory, and that $NCARG_ROOT/bin is on your search path.
>
> --Mary
>
> On May 12, 2012, at 11:01 PM, William Daniel Scheftic wrote:
>
>> Hello,
>>
>> I have been having problems with a difficult to solve memory leak in
>> one of my NCL (V5.1.1) programs.  I have created a procedure called
>> plotGrid that I send my data to and it uses the function
>> gsn_csm_contour_map_ce to produce my output PDFs.  I've checked my
>> programs memory usage by inputting systemfunc calls to ps and it seems
>> that some of the memory used by gsn_csm_contour_map_ce doesn't get
>> released after deleting all internal procedure variables and exiting
>> the plotGrid procedure.  I'm not sure if there is an error in the way
>> I am coding or if it is an error in gsn_csm_contour_map_ce.  Perhaps
>> this error is no longer present in the latest release however I don't
>> have administrative access to install the latest version of NCL on the
>> shared computer I'm using.  Thanks for any help you can offer.
>>
>> Here are links to the files required to run my ncl program also the
>> attached ndvi.rgb file should be placed in the colormaps directory.
>>
>> http://www.atmo.arizona.edu/~scheftic/MODIS_8km_Albers_Grid.nc
>> http://www.atmo.arizona.edu/~scheftic/NDVI_Terra_8km_2004_001.nc
>> http://www.atmo.arizona.edu/~scheftic/NDVI_Terra_8km_2004_017.nc
>> http://www.atmo.arizona.edu/~scheftic/NDVI_Terra_8km_2004_033.nc
>>
>> Sincerely,
>>
>> Bill
>> <modis_terra_output_8km_NDVI_images.ncl><ndvi.rgb>_______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu May 17 15:18:30 2012

This archive was generated by hypermail 2.1.8 : Fri May 25 2012 - 08:35:50 MDT