IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 2, 2008, 10:41:55 AM (18 years ago)
Author:
gusciora
Message:

Added code to do some PS_ASSERTS for input parameters.

File:
1 edited

Legend:

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

    r15697 r15983  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-11-27 03:14:57 $
     8 *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2008-01-02 20:41:55 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    290290psEllipsePol pmPSF_ModelToFit (psF32 *modelPar)
    291291{
    292 //   XXX: must assert non-NULL input parameter
    293 //    PS_ASSERT_PTR_NON_NULL(modelPar, NAN);
     292    // must assert non-NULL input parameter
     293    psEllipsePol pol;
     294    pol.e0 = NAN;
     295    pol.e1 = NAN;
     296    pol.e2 = NAN;
     297    PS_ASSERT_PTR_NON_NULL(modelPar, pol);
    294298
    295299    psEllipseShape shape;
     
    299303    shape.sxy = modelPar[PM_PAR_SXY];
    300304
    301     psEllipsePol pol = psEllipseShapeToPol (shape);
     305    pol = psEllipseShapeToPol (shape);
    302306
    303307    return pol;
     
    310314    psEllipseShape shape;
    311315    psEllipseAxes axes;
     316    axes.major = NAN;
     317    axes.minor = NAN;
     318    axes.theta = NAN;
    312319//   XXX: must assert non-NULL input parameter
    313 //    PS_ASSERT_PTR_NON_NULL(modelPar, axes);
     320    PS_ASSERT_PTR_NON_NULL(modelPar, axes);
    314321
    315322    shape.sx  = modelPar[PM_PAR_SXX] / M_SQRT2;
Note: See TracChangeset for help on using the changeset viewer.