IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Removed pmSourceTest() and added some PS_ASSERTS.

File:
1 edited

Legend:

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

    r15814 r15980  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.47 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-12-13 22:09:35 $
     8 *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2008-01-02 20:39:04 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    130130}
    131131
    132 bool pmSourceTest(const psPtr ptr)
    133 {
    134     return (psMemGetDeallocator(ptr) == (psFreeFunc)sourceFree);
    135 }
    136 
    137132/******************************************************************************
    138133pmSourceCopy(): copy the pmSource structure and contents
     
    807802// construct a realization of the source model
    808803bool pmSourceCacheModel (pmSource *source, psMaskType maskVal) {
    809 
     804    PS_ASSERT_PTR_NON_NULL(source, false);
    810805    // select appropriate model
    811806    pmModel *model = pmSourceGetModel (NULL, source);
     
    826821// XXX this function should optionally save an existing psf image from modelFlux
    827822bool pmSourceCachePSF (pmSource *source, psMaskType maskVal) {
     823    PS_ASSERT_PTR_NON_NULL(source, false);
    828824
    829825    // select appropriate model
     
    846842{
    847843    PS_ASSERT_PTR_NON_NULL(source, false);
     844    PS_ASSERT_PTR_NON_NULL(source->peak, false);
    848845    bool status;
    849846
Note: See TracChangeset for help on using the changeset viewer.