- Timestamp:
- Mar 30, 2012, 2:49:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/psModules/src/imcombine/pmSubtraction.c
r32695 r33638 796 796 pmSubtractionStamp *stamp = job->args->data[0]; // List of stamps 797 797 pmSubtractionKernels *kernels = job->args->data[1]; // Kernels 798 int footprint = PS_SCALAR_VALUE(job->args->data[2], S32); // Stamp index 798 int footprint = PS_SCALAR_VALUE(job->args->data[2], S32); // Stamp index -- MEH - it is? 799 799 800 800 return pmSubtractionConvolveStamp(stamp, kernels, footprint); … … 832 832 833 833 #ifdef TESTING 834 //MEH - index conflict or changed in past? 834 835 for (int j = 0; j < kernels->num; j++) { 835 836 if (stamp->convolutions1) { 836 837 psString convName = NULL; 837 psStringAppend(&convName, "conv1_%03d_%03d.fits", index, j); 838 psFits *fits = psFitsOpen(convName, "w"); 838 //psStringAppend(&convName, "conv1_%03d_%03d.fits", index, j); 839 psStringAppend(&convName, "conv1_xxx_%03d.fits", j); 840 psFits *fits = psFitsOpen(convName, "w"); 839 841 psFree(convName); 840 842 psKernel *conv = stamp->convolutions1->data[j]; … … 845 847 if (stamp->convolutions2) { 846 848 psString convName = NULL; 847 psStringAppend(&convName, "conv2_%03d_%03d.fits", index, j); 848 psFits *fits = psFitsOpen(convName, "w"); 849 //psStringAppend(&convName, "conv2_%03d_%03d.fits", index, j); 850 psStringAppend(&convName, "conv2_xxx_%03d.fits", j); 851 psFits *fits = psFitsOpen(convName, "w"); 849 852 psFree(convName); 850 853 psKernel *conv = stamp->convolutions2->data[j]; … … 905 908 } 906 909 } 907 if (!psThreadPoolWait(true )) {910 if (!psThreadPoolWait(true, true)) { 908 911 psError(psErrorCodeLast(), false, "Error waiting for threads."); 909 912 return false; … … 1427 1430 } 1428 1431 1429 if (!psThreadPoolWait(false )) {1432 if (!psThreadPoolWait(false, true)) { 1430 1433 psError(psErrorCodeLast(), false, "Error waiting for threads."); 1431 1434 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
