IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 28, 2012, 8:49:26 AM (14 years ago)
Author:
eugene
Message:

cleanups for parallel ops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/opihi/dvo/mextract.c

    r33615 r33616  
    2525  selection = NULL;
    2626
    27   fprintf (stderr, "start...");
     27  // fprintf (stderr, "start...");
    2828  if ((N = get_argument (argc, argv, "-h"))) goto help;
    2929  if ((N = get_argument (argc, argv, "--help"))) goto help;
     
    3939    remove_argument (N, &argc, argv);
    4040    PARALLEL = TRUE;
     41  }
     42
     43  // this is used to NOT save the results in the results file
     44  // use this option when mextract is used in a script which does its
     45  // own job of packaging the results
     46  int SKIP_RESULTS = FALSE;
     47  if ((N = get_argument (argc, argv, "-skip-results"))) {
     48    remove_argument (N, &argc, argv);
     49    SKIP_RESULTS = TRUE;
    4150  }
    4251
     
    146155  interrupt = FALSE;
    147156
    148   fprintf (stderr, "done setup...");
     157  // fprintf (stderr, "done setup...");
    149158
    150159  for (i = 0; (i < skylist[0].Nregions) && !interrupt; i++) {
     
    171180    /* XXX need to call dvo_catalog_chipcoords here passing the loaded images */
    172181
    173     fprintf (stderr, "done read...");
     182    // fprintf (stderr, "done read...");
    174183
    175184    for (j = 0; (j < catalog.Naverage) && !interrupt; j++) {
     
    223232  interrupt = FALSE;
    224233
    225   fprintf (stderr, "done load...");
     234  // fprintf (stderr, "done load...");
    226235
    227236  for (n = 0; n < Nreturn; n++) {
     
    230239
    231240  // write vectors to a table (this is used by parallel dvo operations, but can be used elsewhere)
    232   if (RESULT_FILE) {
     241  if (RESULT_FILE && !SKIP_RESULTS) {
    233242    int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nreturn, FALSE, NULL);
    234243    if (!status) goto escape;
     
    244253  FreeSkyRegionSelection (selection);
    245254
    246   fprintf (stderr, "done extr...\n");
     255  // fprintf (stderr, "done extr...\n");
    247256  return (TRUE);
    248257
Note: See TracChangeset for help on using the changeset viewer.