IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40230


Ignore:
Timestamp:
Nov 30, 2017, 8:44:49 PM (9 years ago)
Author:
eugene
Message:

need to have a test-mode to skip gpc1-specific restrictions

Location:
branches/eam_branches/ohana.20170822/src/dvopsps
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20170822/src/dvopsps/include/dvopsps.h

    r39112 r40230  
    4545
    4646int          SAVE_REMOTE;
     47int          TEST_MODE;
    4748
    4849int          PARALLEL;
  • branches/eam_branches/ohana.20170822/src/dvopsps/src/initialize_dvopsps.c

    r38674 r40230  
    123123  if ((N = get_argument (argc, argv, "-insert-remote"))) {
    124124    SAVE_REMOTE = FALSE;
     125    remove_argument (N, &argc, argv);
     126  }
     127
     128  TEST_MODE = FALSE;
     129  if ((N = get_argument (argc, argv, "-test-mode"))) {
     130    TEST_MODE = TRUE;
    125131    remove_argument (N, &argc, argv);
    126132  }
     
    361367  }
    362368
     369  TEST_MODE = FALSE;
     370  if ((N = get_argument (argc, argv, "-test-mode"))) {
     371    TEST_MODE = TRUE;
     372    remove_argument (N, &argc, argv);
     373  }
     374
    363375  HOST_ID = 0;
    364376  if ((N = get_argument (argc, argv, "-hostID"))) {
  • branches/eam_branches/ohana.20170822/src/dvopsps/src/insert_FWobjects_dvopsps.c

    r38471 r40230  
    136136    snprintf (tmpline, 1024, "%s -dbname %s", command, DATABASE_NAME); strcpy (command, tmpline);
    137137
    138     if (VERBOSE)    { snprintf (tmpline, 1024, "%s -v",      command);             strcpy (command, tmpline); }
    139     if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }
     138    if (VERBOSE)    { snprintf (tmpline, 1024, "%s -v",         command);             strcpy (command, tmpline); }
     139    if (TEST_MODE)  { snprintf (tmpline, 1024, "%s -test-mode", command);             strcpy (command, tmpline); }
     140    if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s",    command, SINGLE_CPT); strcpy (command, tmpline); }
    140141
    141142    fprintf (stderr, "command: %s\n", command);
  • branches/eam_branches/ohana.20170822/src/dvopsps/src/insert_FWobjects_dvopsps_catalog.c

    r39593 r40230  
    4343    }
    4444
    45     int hasPS1 = FALSE;
    46     for (int j = 0; !hasPS1 && (j < Nsecfilt); j++) {
    47       if (secfilt[i*Nsecfilt + j].flags & hasPS1_flag) hasPS1 = TRUE;
    48     }
    49     if (!hasPS1) continue; // skip non-PS1 data
     45    if (!TEST_MODE) {
     46      int hasPS1 = FALSE;
     47      for (int j = 0; !hasPS1 && (j < Nsecfilt); j++) {
     48        if (secfilt[i*Nsecfilt + j].flags & hasPS1_flag) hasPS1 = TRUE;
     49      }
     50      if (!hasPS1) continue; // skip non-PS1 data
     51    }
    5052
    5153    off_t m = average[i].lensobjOffset;
Note: See TracChangeset for help on using the changeset viewer.