comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Delvar?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Delvar? [message #31221] Fri, 28 June 2002 07:33 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
William (wmc@bas.ac.uk) writes:

> I understand that I can't use delvar in subroutines, only at the
> main prompt. But if I do verybigarray=0, does that get rid of the
> memory usage anyway?

It gets rid of *most* of it. :-)

It just looks so un-intuitive in your code though.
If you are as anal as I am, you might prefer to use
UNDEFINE:

http://www.dfanning.com/programs/undefine.pro

It's the DELVAR for the rest of us.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Delvar? [message #31224 is a reply to message #31221] Fri, 28 June 2002 06:10 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
wmc@bas.ac.uk wrote:
>
> I understand that I can't use delvar in subroutines, only at the
> main prompt. But if I do verybigarray=0, does that get rid of the
> memory usage anyway?


Yes,

the actual memory usage is shown by help,/mem.

Reimar





>
> -W.
>
> --
> William M Connolley | wmc@bas.ac.uk | http://www.nerc-bas.ac.uk/icd/wmc/
> Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
> I'm a .signature virus! copy me into your .signature file & help me spread!

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
Re: Delvar? [message #31370 is a reply to message #31221] Fri, 28 June 2002 11:01 Go to previous message
wmconnolley is currently offline  wmconnolley
Messages: 106
Registered: November 2000
Senior Member
David Fanning <david@dfanning.com> wrote:
> It just looks so un-intuitive in your code though.
> If you are as anal as I am,

Hmm. A case for the Bottom Inspectors, perhaps (Viz, anyone?)

> you might prefer to use UNDEFINE:

> http://www.dfanning.com/programs/undefine.pro

OK, I've read it, but I have only a vague idea of why:

tempvar = Size(Temporary(varname))

works to delete varname...

-W.

--
William M Connolley | wmc@bas.ac.uk | http://www.nerc-bas.ac.uk/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
I'm a .signature virus! copy me into your .signature file & help me spread!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Matching Structure Tag Lengths
Next Topic: Re: gamma correction

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:40:07 PDT 2025

Total time taken to generate the page: 0.00641 seconds