>  Docs Center  >  Libraries  >  ASTROLIB  >  DELVARX
Libraries

DELVARX

DELVARX

Name


DELVARX

Purpose


  Delete up to 10 variables for memory management (can call from routines)

Explanation


Like intrinsic DELVAR function, but can be used from any calling level
 
      Modified in January 2012 to always free memory associated with
      pointers/objects and remove the use EXECUTE()
      Also look at

Calling Sequence


  DELVARX, p0, [p1, p2......p9]

Inputs


p0, p1...p9 - variables to delete
  OBSOLETE KEYWORD:
      /FREE_MEM - formerly freed memory associated with pointers
                  and objects. Since this is now the DELVARX default this
                  keyword does nothing.
         

Method


Uses HEAP_FREE and PTR_NEW(/NO_COPY) to delete variables and free
      memory

Revision History


Copied from the Solar library, written by slf, 25-Feb-1993
Added to Astronomy Library, September 1995
      Modified, 26-Mar-2003, Zarro (EER/GSFC) 26-Mar-2003
      - added FREE_MEM to free pointer/objects
      Modified, 28-Jan-2012, E. Rykoff (SLAC), W. Landsman -
              replace EXECUTE calls with SCOPE_VARFETCH.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us