IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15165


Ignore:
Timestamp:
Oct 2, 2007, 2:42:40 PM (19 years ago)
Author:
gusciora
Message:

Added the function

psMemCheckGrowthCurve(psPtr ptr)

Also, added some asserts to pmGrowthCurveCorrect() to ensure that input args
are not NULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmGrowthCurve.c

    r14938 r15165  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-09-21 00:03:51 $
     7 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2007-10-03 00:42:40 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232static void pmGrowthCurveFree (pmGrowthCurve *growth)
    3333{
    34 
    3534    if (growth == NULL)
    3635        return;
     
    3938    psFree (growth->apMag);
    4039    return;
     40}
     41
     42bool psMemCheckGrowthCurve(psPtr ptr)
     43{
     44    PS_ASSERT_PTR(ptr, false);
     45    return ( psMemGetDeallocator(ptr) == (psFreeFunc)pmGrowthCurveFree );
    4146}
    4247
     
    5964}
    6065
    61 psF32 pmGrowthCurveCorrect (pmGrowthCurve *growth, psF32 radius)
     66psF32 pmGrowthCurveCorrect(pmGrowthCurve *growth, psF32 radius)
    6267{
    63 
     68    PS_ASSERT_PTR_NON_NULL(growth, NAN);
    6469    float apRad = psVectorInterpolate (growth->radius, growth->apMag, radius);
    6570    float apCor = growth->apRef - apRad;
Note: See TracChangeset for help on using the changeset viewer.