Changeset 6511 for trunk/psModules/src/objects/pmPSFtry.c
- Timestamp:
- Mar 3, 2006, 3:01:34 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPSFtry.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPSFtry.c
r5844 r6511 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $8 * @date $Date: 200 5-12-24 01:24:32$7 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-03-04 01:01:33 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 59 59 test->mask = psVectorAlloc (sources->n, PS_TYPE_U8); 60 60 61 test->modelFLT->n = test->modelFLT->nalloc; 62 test->modelPSF->n = test->modelPSF->nalloc; 63 test->metric->n = test->metric->nalloc; 64 test->fitMag->n = test->fitMag->nalloc; 65 test->mask->n = test->mask->nalloc; 66 61 67 for (int i = 0; i < test->modelFLT->n; i++) { 62 68 test->mask->data.U8[i] = 0; … … 204 210 // rflux = ten(0.4*fitMag); 205 211 psVector *rflux = psVectorAlloc (psfTry->sources->n, PS_TYPE_F64); 212 rflux->n = rflux->nalloc; 206 213 for (int i = 0; i < psfTry->sources->n; i++) { 207 214 if (psfTry->mask->data.U8[i] & PSFTRY_MASK_ALL) … … 219 226 psVector *daBin = psVectorAlloc (rfBin->n, PS_TYPE_F64); 220 227 psVector *maskB = psVectorAlloc (rfBin->n, PS_TYPE_U8); 228 daBin->n = daBin->nalloc; 229 maskB->n = maskB->nalloc; 221 230 psFree (stats); 222 231 … … 272 281 273 282 psVector *tmp2 = psVectorAlloc (nKeep, PS_TYPE_F64); 283 tmp2->n = tmp2->nalloc; 274 284 for (int j = 0; j < tmp2->n; j++) { 275 285 tmp2->data.F64[j] = tmp->data.F64[j + nSkip]; … … 337 347 psVector *rflux = psVectorAlloc (try 338 348 ->sources->n, PS_TYPE_F64); 349 rflux->n = rflux->nalloc; 339 350 for (int i = 0; i < try 340 351 ->sources->n; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
