Changeset 21277
- Timestamp:
- Feb 3, 2009, 3:35:39 PM (17 years ago)
- Location:
- branches/eam_branch_20090203/psphot/src
- Files:
-
- 5 edited
-
psphotApResid.c (modified) (3 diffs)
-
psphotBlendFit.c (modified) (3 diffs)
-
psphotGuessModels.c (modified) (3 diffs)
-
psphotMagnitudes.c (modified) (3 diffs)
-
psphotSourceStats.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20090203/psphot/src/psphotApResid.c
r21274 r21277 31 31 nThreads = 0; 32 32 } 33 nThreads = 0; 33 34 34 35 bool measureAptrend = psMetadataLookupBool (&status, recipe, "MEASURE.APTREND"); … … 95 96 for (int j = 0; j < cells->n; j++) { 96 97 97 if (nThreads > 1) {98 if (nThreads) { 98 99 // allocate a job -- if threads are not defined, this just runs the job 99 100 psThreadJob *job = psThreadJobAlloc ("PSPHOT_APRESID_MAGS"); … … 127 128 } 128 129 129 if (nThreads > 1) {130 if (nThreads) { 130 131 // wait for the threads to finish and manage results 131 132 if (!psThreadPoolWait (false)) { -
branches/eam_branch_20090203/psphot/src/psphotBlendFit.c
r21275 r21277 23 23 nThreads = 0; 24 24 } 25 nThreads = 0; 25 26 26 27 // source fitting parameters for extended source fits … … 64 65 for (int j = 0; j < cells->n; j++) { 65 66 66 if (nThreads > 1) {67 if (nThreads) { 67 68 // allocate a job -- if threads are not defined, this just runs the job 68 69 psThreadJob *job = psThreadJobAlloc ("PSPHOT_BLEND_FIT"); … … 111 112 } 112 113 113 if (nThreads > 1) {114 if (nThreads) { 114 115 // wait for the threads to finish and manage results 115 116 if (!psThreadPoolWait (false)) { -
branches/eam_branch_20090203/psphot/src/psphotGuessModels.c
r21274 r21277 40 40 nThreads = 0; 41 41 } 42 //nThreads = 0; // XXX until testing is complete, do not thread this function42 nThreads = 0; // XXX until testing is complete, do not thread this function 43 43 44 44 // bit-masks to test for good/bad pixels … … 68 68 for (int j = 0; j < cells->n; j++) { 69 69 70 if (nThreads > 1) {70 if (nThreads) { 71 71 // allocate a job -- if threads are not defined, this just runs the job 72 72 psThreadJob *job = psThreadJobAlloc ("PSPHOT_GUESS_MODEL"); … … 93 93 } 94 94 95 if (nThreads > 1) {95 if (nThreads) { 96 96 // wait for the threads to finish and manage results 97 97 // wait here for the threaded jobs to finish -
branches/eam_branch_20090203/psphot/src/psphotMagnitudes.c
r21274 r21277 19 19 nThreads = 0; 20 20 } 21 nThreads = 0; 21 22 22 23 // if backModel or backStdev are missing, the values of sky and/or skyErr will be set to NAN … … 59 60 for (int j = 0; j < cells->n; j++) { 60 61 61 if (nThreads > 1) {62 if (nThreads) { 62 63 // allocate a job -- if threads are not defined, this just runs the job 63 64 psThreadJob *job = psThreadJobAlloc ("PSPHOT_MAGNITUDES"); … … 89 90 } 90 91 91 if (nThreads > 1) {92 if (nThreads) { 92 93 // wait for the threads to finish and manage results 93 94 if (!psThreadPoolWait (false)) { -
branches/eam_branch_20090203/psphot/src/psphotSourceStats.c
r21274 r21277 19 19 nThreads = 0; 20 20 } 21 nThreads = 0; 21 22 22 23 // determine properties (sky, moments) of initial sources … … 80 81 for (int j = 0; j < cells->n; j++) { 81 82 82 if (nThreads > 1) {83 if (nThreads) { 83 84 // allocate a job -- if threads are not defined, this just runs the job 84 85 psThreadJob *job = psThreadJobAlloc ("PSPHOT_SOURCE_STATS"); … … 107 108 } 108 109 109 if (nThreads > 1) {110 if (nThreads) { 110 111 // wait for the threads to finish and manage results 111 112 if (!psThreadPoolWait (false)) {
Note:
See TracChangeset
for help on using the changeset viewer.
