Changeset 26076 for trunk/ppStack/src/ppStackLoop.c
- Timestamp:
- Nov 9, 2009, 2:53:12 PM (17 years ago)
- Location:
- trunk/ppStack
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/ppStackLoop.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/czw_branch/cleanup/ppStack merged eligible /branches/eam_branches/20090522/ppStack merged eligible /branches/eam_branches/20090715/ppStack merged eligible /branches/eam_branches/20090820/ppStack merged eligible /branches/pap/ppStack merged eligible /branches/pap_mops/ppStack 25137-25255
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/ppStack/src/ppStackLoop.c
r25738 r26076 56 56 // Start threading 57 57 ppStackThreadInit(); 58 ppStackThreadData *stack = ppStackThreadDataSetup(options, config );58 ppStackThreadData *stack = ppStackThreadDataSetup(options, config, true); 59 59 if (!stack) { 60 60 psError(PS_ERR_IO, false, "Unable to initialise stack threads."); … … 62 62 return false; 63 63 } 64 psFree(options->cells); options->cells = NULL;65 64 66 65 // Prepare for combination … … 98 97 // Final combination 99 98 psTrace("ppStack", 2, "Final stack of convolved images....\n"); 100 if (!ppStackCombineFinal( stack, options, config)) {99 if (!ppStackCombineFinal(options->outRO, stack, options->convCovars, options, config, false, false)) { 101 100 psError(PS_ERR_UNKNOWN, false, "Unable to perform final combination."); 102 101 psFree(stack); … … 106 105 psLogMsg("ppStack", PS_LOG_INFO, "Stage 5: Final Stack: %f sec", psTimerClear("PPSTACK_STEPS")); 107 106 ppStackMemDump("final"); 108 109 107 110 108 // Clean up … … 121 119 psFree(stack); 122 120 121 #if 1 122 // Unconvolved stack --- it's cheap to calculate, compared to everything else! 123 if (options->convolve) { 124 // Start threading 125 ppStackThreadData *stack = ppStackThreadDataSetup(options, config, false); 126 if (!stack) { 127 psError(PS_ERR_IO, false, "Unable to initialise stack threads."); 128 psFree(options); 129 return false; 130 } 131 psTrace("ppStack", 2, "Stack of unconvolved images....\n"); 132 if (!ppStackCombineFinal(options->unconvRO, stack, options->origCovars, options, config, false, true)) { 133 psError(PS_ERR_UNKNOWN, false, "Unable to perform unconvolved combination."); 134 psFree(stack); 135 psFree(options); 136 return false; 137 } 138 psLogMsg("ppStack", PS_LOG_INFO, "Stage 7: Unconvolved Stack: %f sec", psTimerClear("PPSTACK_STEPS")); 139 ppStackMemDump("unconv"); 140 141 psFree(stack); 142 } 143 psFree(options->cells); options->cells = NULL; 144 #endif 123 145 124 146 // Photometry … … 129 151 return false; 130 152 } 131 psLogMsg("ppStack", PS_LOG_INFO, "Stage 7: Photometry Analysis: %f sec", psTimerClear("PPSTACK_STEPS"));153 psLogMsg("ppStack", PS_LOG_INFO, "Stage 8: Photometry Analysis: %f sec", psTimerClear("PPSTACK_STEPS")); 132 154 ppStackMemDump("photometry"); 133 134 155 135 156 // Finish up … … 140 161 return false; 141 162 } 142 psLogMsg("ppStack", PS_LOG_INFO, "Stage 8: Final output: %f sec", psTimerClear("PPSTACK_STEPS"));163 psLogMsg("ppStack", PS_LOG_INFO, "Stage 9: Final output: %f sec", psTimerClear("PPSTACK_STEPS")); 143 164 ppStackMemDump("finish"); 144 165 145 166 psFree(options); 167 146 168 return true; 147 169 }
Note:
See TracChangeset
for help on using the changeset viewer.
