- Timestamp:
- May 11, 2010, 5:39:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/psModules.20100506/src/objects/pmSourceExtendedPars.c
r27818 r27924 65 65 } 66 66 67 // pmSourceRadialApertures carries the raw radial flux information, including angular bins 68 static void pmSourceRadialAperturesFree(pmSourceRadialApertures *radial) 69 { 70 if (!radial) return; 71 psFree(radial->flux); 72 psFree(radial->fill); 73 } 74 75 pmSourceRadialApertures *pmSourceRadialAperturesAlloc() 76 { 77 pmSourceRadialApertures *radial = (pmSourceRadialApertures *)psAlloc(sizeof(pmSourceRadialApertures)); 78 psMemSetDeallocator(radial, (psFreeFunc) pmSourceRadialAperturesFree); 79 80 radial->flux = NULL; 81 radial->fill = NULL; 82 return radial; 83 } 84 85 bool psMemCheckSourceRadialApertures(psPtr ptr) 86 { 87 PS_ASSERT_PTR(ptr, false); 88 return ( psMemGetDeallocator(ptr) == (psFreeFunc) pmSourceRadialAperturesFree); 89 } 90 67 91 // pmSourceEllipticalFlux carries the elliptical renormalized radial flux info 68 92 static void pmSourceEllipticalFluxFree(pmSourceEllipticalFlux *flux)
Note:
See TracChangeset
for help on using the changeset viewer.
