Changeset 40230
- Timestamp:
- Nov 30, 2017, 8:44:49 PM (9 years ago)
- Location:
- branches/eam_branches/ohana.20170822/src/dvopsps
- Files:
-
- 4 edited
-
include/dvopsps.h (modified) (1 diff)
-
src/initialize_dvopsps.c (modified) (2 diffs)
-
src/insert_FWobjects_dvopsps.c (modified) (1 diff)
-
src/insert_FWobjects_dvopsps_catalog.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20170822/src/dvopsps/include/dvopsps.h
r39112 r40230 45 45 46 46 int SAVE_REMOTE; 47 int TEST_MODE; 47 48 48 49 int PARALLEL; -
branches/eam_branches/ohana.20170822/src/dvopsps/src/initialize_dvopsps.c
r38674 r40230 123 123 if ((N = get_argument (argc, argv, "-insert-remote"))) { 124 124 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; 125 131 remove_argument (N, &argc, argv); 126 132 } … … 361 367 } 362 368 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 363 375 HOST_ID = 0; 364 376 if ((N = get_argument (argc, argv, "-hostID"))) { -
branches/eam_branches/ohana.20170822/src/dvopsps/src/insert_FWobjects_dvopsps.c
r38471 r40230 136 136 snprintf (tmpline, 1024, "%s -dbname %s", command, DATABASE_NAME); strcpy (command, tmpline); 137 137 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); } 140 141 141 142 fprintf (stderr, "command: %s\n", command); -
branches/eam_branches/ohana.20170822/src/dvopsps/src/insert_FWobjects_dvopsps_catalog.c
r39593 r40230 43 43 } 44 44 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 } 50 52 51 53 off_t m = average[i].lensobjOffset;
Note:
See TracChangeset
for help on using the changeset viewer.
