IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 21277


Ignore:
Timestamp:
Feb 3, 2009, 3:35:39 PM (17 years ago)
Author:
eugene
Message:

deactivate threading

Location:
branches/eam_branch_20090203/psphot/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20090203/psphot/src/psphotApResid.c

    r21274 r21277  
    3131        nThreads = 0;
    3232    }
     33    nThreads = 0;
    3334
    3435    bool measureAptrend = psMetadataLookupBool (&status, recipe, "MEASURE.APTREND");
     
    9596        for (int j = 0; j < cells->n; j++) {
    9697
    97             if (nThreads > 1) {
     98            if (nThreads) {
    9899                // allocate a job -- if threads are not defined, this just runs the job
    99100                psThreadJob *job = psThreadJobAlloc ("PSPHOT_APRESID_MAGS");
     
    127128        }
    128129
    129         if (nThreads > 1) {
     130        if (nThreads) {
    130131            // wait for the threads to finish and manage results
    131132            if (!psThreadPoolWait (false)) {
  • branches/eam_branch_20090203/psphot/src/psphotBlendFit.c

    r21275 r21277  
    2323        nThreads = 0;
    2424    }
     25    nThreads = 0;
    2526
    2627    // source fitting parameters for extended source fits
     
    6465        for (int j = 0; j < cells->n; j++) {
    6566
    66             if (nThreads > 1) {
     67            if (nThreads) {
    6768                // allocate a job -- if threads are not defined, this just runs the job
    6869                psThreadJob *job = psThreadJobAlloc ("PSPHOT_BLEND_FIT");
     
    111112        }
    112113
    113         if (nThreads > 1) {
     114        if (nThreads) {
    114115            // wait for the threads to finish and manage results
    115116            if (!psThreadPoolWait (false)) {
  • branches/eam_branch_20090203/psphot/src/psphotGuessModels.c

    r21274 r21277  
    4040        nThreads = 0;
    4141    }
    42     // nThreads = 0; // XXX until testing is complete, do not thread this function
     42    nThreads = 0; // XXX until testing is complete, do not thread this function
    4343
    4444    // bit-masks to test for good/bad pixels
     
    6868        for (int j = 0; j < cells->n; j++) {
    6969
    70             if (nThreads > 1) {
     70            if (nThreads) {
    7171                // allocate a job -- if threads are not defined, this just runs the job
    7272                psThreadJob *job = psThreadJobAlloc ("PSPHOT_GUESS_MODEL");
     
    9393        }
    9494
    95         if (nThreads > 1) {
     95        if (nThreads) {
    9696            // wait for the threads to finish and manage results
    9797            // wait here for the threaded jobs to finish
  • branches/eam_branch_20090203/psphot/src/psphotMagnitudes.c

    r21274 r21277  
    1919        nThreads = 0;
    2020    }
     21    nThreads = 0;
    2122
    2223    // if backModel or backStdev are missing, the values of sky and/or skyErr will be set to NAN
     
    5960        for (int j = 0; j < cells->n; j++) {
    6061
    61             if (nThreads > 1) {
     62            if (nThreads) {
    6263                // allocate a job -- if threads are not defined, this just runs the job
    6364                psThreadJob *job = psThreadJobAlloc ("PSPHOT_MAGNITUDES");
     
    8990        }
    9091
    91         if (nThreads > 1) {
     92        if (nThreads) {
    9293            // wait for the threads to finish and manage results
    9394            if (!psThreadPoolWait (false)) {
  • branches/eam_branch_20090203/psphot/src/psphotSourceStats.c

    r21274 r21277  
    1919        nThreads = 0;
    2020    }
     21    nThreads = 0;
    2122
    2223    // determine properties (sky, moments) of initial sources
     
    8081        for (int j = 0; j < cells->n; j++) {
    8182
    82             if (nThreads > 1) {
     83            if (nThreads) {
    8384                // allocate a job -- if threads are not defined, this just runs the job
    8485                psThreadJob *job = psThreadJobAlloc ("PSPHOT_SOURCE_STATS");
     
    107108        }
    108109
    109         if (nThreads > 1) {
     110        if (nThreads) {
    110111            // wait for the threads to finish and manage results
    111112            if (!psThreadPoolWait (false)) {
Note: See TracChangeset for help on using the changeset viewer.