IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 19, 2010, 2:09:25 PM (16 years ago)
Author:
eugene
Message:

updates from trunk

Location:
branches/czw_branch/20100427/psModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20100427/psModules

  • branches/czw_branch/20100427/psModules/src/objects/pmSourceExtendedPars.c

    r28017 r28030  
    6565}
    6666
     67// pmSourceRadialApertures carries the raw radial flux information, including angular bins
     68static void pmSourceRadialAperturesFree(pmSourceRadialApertures *radial)
     69{
     70    if (!radial) return;
     71    psFree(radial->flux);
     72    psFree(radial->fluxErr);
     73    psFree(radial->fill);
     74}
     75
     76pmSourceRadialApertures *pmSourceRadialAperturesAlloc()
     77{
     78    pmSourceRadialApertures *radial = (pmSourceRadialApertures *)psAlloc(sizeof(pmSourceRadialApertures));
     79    psMemSetDeallocator(radial, (psFreeFunc) pmSourceRadialAperturesFree);
     80
     81    radial->flux = NULL;
     82    radial->fluxErr = NULL;
     83    radial->fill = NULL;
     84    return radial;
     85}
     86
     87bool psMemCheckSourceRadialApertures(psPtr ptr)
     88{
     89    PS_ASSERT_PTR(ptr, false);
     90    return ( psMemGetDeallocator(ptr) == (psFreeFunc) pmSourceRadialAperturesFree);
     91}
     92
    6793// pmSourceEllipticalFlux carries the elliptical renormalized radial flux info
    6894static void pmSourceEllipticalFluxFree(pmSourceEllipticalFlux *flux)
Note: See TracChangeset for help on using the changeset viewer.