- Timestamp:
- Jun 5, 2008, 3:29:09 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080511/ppSim/src/ppSimInsertStars.c
r17850 r17935 114 114 source->errMag = sqrt(Area*PS_SQR(roughNoise) + flux) / flux; 115 115 116 // XXX add the sources to a source array117 118 116 // insert the source flux in the image 119 117 pmSourceAddWithOffset (source, PM_MODEL_OP_FULL, 0xff, dX, dY); 120 118 pmSourceAddWithOffset (source, PM_MODEL_OP_FULL | PM_MODEL_OP_NOISE, 0xff, dX, dY); 121 psArrayAdd (sources, 100,source);122 psFree(source); // Drop reference123 119 124 120 // Blow away the image parts of the source, which makes the memory explode … … 130 126 RESET(source->psfFlux); 131 127 RESET(source->blends); 128 129 // add the sources to the source array 130 psArrayAdd (sources, 100,source); 131 psFree(source); // Drop reference 132 132 } 133 133
Note:
See TracChangeset
for help on using the changeset viewer.
