IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24797


Ignore:
Timestamp:
Jul 14, 2009, 6:39:45 PM (17 years ago)
Author:
eugene
Message:

check for rows == 0 and threads non-zero

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeLoop.c

    r24782 r24797  
    204204            }
    205205
     206            int rows = psMetadataLookupS32(NULL, config->arguments, "ROWS"); // Number of rows to read per chunk
     207            if (!rows && nThreads) {
     208              psError(PS_ERR_UNKNOWN, false, "Invalid combination of threads > 0 and ROWS == 0 (ie, multiple threads working on the full array...)");
     209              goto ERROR;
     210            }
     211
    206212            ppMergeFileGroup *fileGroup = NULL;
    207213            psArray *fileGroups = psArrayAlloc(nThreads + 1);
     
    213219                    pmFPAfile *input = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT", j);
    214220                    pmCell *inCell = pmFPAviewThisCell(view, input->fpa); ///< Input cell
    215                     readouts->data[j] = pmReadoutAlloc(inCell);
     221                    pmReadout *readout = pmReadoutAlloc(inCell);
     222                    readout->process = true; // until proven otherwise, attempt to process this readout
     223                    readouts->data[j] = readout;
    216224                }
    217225
Note: See TracChangeset for help on using the changeset viewer.