Changeset 6751 for branches/rel10_ifa/psModules/src/objects/pmGrowthCurve.c
- Timestamp:
- Mar 31, 2006, 4:47:20 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel10_ifa/psModules/src/objects/pmGrowthCurve.c
r6556 r6751 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.1.4. 2$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-0 3-09 03:14:23$7 * @version $Revision: 1.1.4.3 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-04-01 02:47:20 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 26 26 } 27 27 28 pmGrowthCurve *pmGrowthCurveAlloc (psF32 minRadius, psF32 maxRadius, psF32 dRadius)28 pmGrowthCurve *pmGrowthCurveAlloc (psF32 minRadius, psF32 maxRadius, psF32 refRadius) 29 29 { 30 30 … … 32 32 psMemSetDeallocator(growth, (psFreeFunc) pmGrowthCurveFree); 33 33 34 growth->radius = psVectorCreate (NULL, minRadius, maxRadius, dRadius, PS_TYPE_F32); 34 // fractional pixel radii are not well defined; use integer steps 35 growth->radius = psVectorCreate (NULL, minRadius, maxRadius, 1.0, PS_TYPE_F32); 35 36 growth->apMag = psVectorAlloc (growth->radius->n, PS_TYPE_F32); 36 37 37 38 // XXX may want to extend this to allow for a different refRadius; 38 growth->refRadius = maxRadius;39 growth->refRadius = refRadius; 39 40 growth->maxRadius = maxRadius; 40 41 growth->apLoss = 0.0; … … 111 112 112 113 if (n1 == 0) { 113 intn0 = psVectorBracket (index, key, FALSE);114 n0 = psVectorBracket (index, key, FALSE); 114 115 n1 = n0 + 1; 115 116 }
Note:
See TracChangeset
for help on using the changeset viewer.
