Changeset 27086 for trunk/psModules/src/imcombine/pmSubtractionParams.c
- Timestamp:
- Feb 25, 2010, 12:33:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtractionParams.c
r26893 r27086 8 8 #include <pslib.h> 9 9 10 #include "pmErrorCodes.h" 10 11 #include "pmSubtractionStamps.h" 11 12 #include "pmSubtraction.h" … … 281 282 } 282 283 if (!pmSubtractionConvolveStamp(stamp, kernels, footprint)) { 283 psError( PS_ERR_UNKNOWN, false, "Unable to convolve stamp %d.", i);284 psError(psErrorCodeLast(), false, "Unable to convolve stamp %d.", i); 284 285 psFree(targets); 285 286 psFree(kernels); … … 297 298 } 298 299 if (!isfinite(sum1)) { 299 psError(P S_ERR_BAD_PARAMETER_VALUE, true,300 psError(PM_ERR_DATA, true, 300 301 "Sum of 1/sigma^2 is non-finite for stamp %d (%d,%d)\n", 301 302 i, (int)stamp->x, (int)stamp->y); … … 369 370 370 371 if (bestIndex == -1) { 371 psError(P S_ERR_UNKNOWN, false, "Unable to find best kernel component in round %d.", iter);372 psError(PM_ERR_DATA, true, "Unable to find best kernel component in round %d.", iter); 372 373 psFree(targets); 373 374 psFree(sumC); … … 408 409 409 410 if (cutIndex < 0) { 410 psError(P S_ERR_BAD_PARAMETER_VALUE, true, "Unable to converge to tolerance %g\n", tolerance);411 psError(PM_ERR_DATA, true, "Unable to converge to tolerance %g\n", tolerance); 411 412 psFree(ranking); 412 413 psFree(kernels);
Note:
See TracChangeset
for help on using the changeset viewer.
