Changeset 35743 for branches/eam_branches/ipp-20130509/Ohana
- Timestamp:
- Jul 3, 2013, 12:23:57 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130509/Ohana/src
- Files:
-
- 5 edited
-
addstar/src/resort_catalog.c (modified) (3 diffs)
-
delstar/src/Shutdown.c (modified) (1 diff)
-
delstar/src/delete_fix_LAP_edges_delete.c (modified) (5 diffs)
-
delstar/src/delstar_client.c (modified) (1 diff)
-
libdvo/include/dvo.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/Ohana/src/addstar/src/resort_catalog.c
r35719 r35743 32 32 void SortAveMeasMatch (off_t *MEAS, off_t *AVE, off_t N) { 33 33 34 # define SWAPFUNC(A,B){ off_t tmp_meas; off_t tmp_ave; \35 tmp_meas = MEAS[A]; MEAS[A] = MEAS[B]; MEAS[B] = tmp_meas; \36 tmp_ave = AVE[A]; AVE[A] = AVE[B]; AVE[B] = tmp_ave; \34 # define SWAPFUNC(A,B){ off_t tmp_meas; off_t tmp_ave; \ 35 tmp_meas = MEAS[A]; MEAS[A] = MEAS[B]; MEAS[B] = tmp_meas; \ 36 tmp_ave = AVE[A]; AVE[A] = AVE[B]; AVE[B] = tmp_ave; \ 37 37 } 38 38 # define COMPARE(A,B)(AVE[A] < AVE[B]) … … 42 42 } 43 43 44 # define MARKTIME(MSG,...) { \45 float dtime;\46 gettimeofday (&stop, (void *) NULL);\47 dtime = DTIME (stop, start); start = stop;\48 fprintf (stderr, MSG, __VA_ARGS__); }44 # define MARKTIME(MSG,...) { \ 45 float dtime; \ 46 gettimeofday (&stop, (void *) NULL); \ 47 dtime = DTIME (stop, start); start = stop; \ 48 fprintf (stderr, MSG, __VA_ARGS__); } 49 49 50 50 // XXX : where is the time going? perhaps the ALLOCATE? … … 101 101 measure[measureSeq[i]].objID = average[averageSeq[i]].objID; // XXX I don't really like this... 102 102 } 103 # endif 103 104 } 104 # endif105 105 } 106 106 -
branches/eam_branches/ipp-20130509/Ohana/src/delstar/src/Shutdown.c
r7080 r35743 22 22 23 23 SetProtect (TRUE); 24 gfits_db_close (db);24 if (db) gfits_db_close (db); 25 25 fprintf (stderr, "ERROR: delstar halted\n"); 26 26 exit (1); -
branches/eam_branches/ipp-20130509/Ohana/src/delstar/src/delete_fix_LAP_edges_delete.c
r35740 r35743 83 83 84 84 int myCatID = skylist[0].regions[i][0].index; 85 if (myCatID > maxCatID) continue; 85 86 if (!catIDcount[myCatID]) continue; 86 87 … … 106 107 } 107 108 109 off_t NaverageStart = catalog.Naverage; 110 off_t NmeasureStart = catalog.Nmeasure; 108 111 delete_fix_LAP_edges_drop_measures (&catalog, measure_edge, Nmeasure_edge, catIDcount[myCatID]); 109 112 110 // need to save the catalog here, after we confirm functionality 113 // skip if nothing was deleted 114 int noChange = (NaverageStart == catalog.Naverage) && (NmeasureStart == catalog.Nmeasure); 115 if (UPDATE && !noChange) { 116 // XXX save a backup copy first 117 dvo_catalog_backup (&catalog, TRUE); 118 dvo_catalog_save_complete (&catalog, VERBOSE2); 119 } 111 120 112 121 dvo_catalog_unlock (&catalog); … … 135 144 exit (1); 136 145 } 146 147 { 148 // ensure that the paths are absolute path names 149 char *tmppath = abspath (EDGE_DELETIONS, DVO_MAX_PATH); 150 free (EDGE_DELETIONS); 151 EDGE_DELETIONS = tmppath; 152 } 137 153 138 154 int i, j; … … 172 188 if (VERBOSE2) { snprintf (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); } 173 189 if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); } 174 //if (UPDATE) { snprintf (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); }190 if (UPDATE) { snprintf (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); } 175 191 176 192 fprintf (stderr, "command: %s\n", command); … … 224 240 for (i = 0; i < Nmeasure_edge; i++) { 225 241 if (measure_edge[i].catID != myCatID) continue; 226 myAssert (NbadMeasures >=catIDcount, "too many bad measures?");242 myAssert (NbadMeasures < catIDcount, "too many bad measures?"); 227 243 badMeasures[NbadMeasures] = i; 228 244 NbadMeasures ++; -
branches/eam_branches/ipp-20130509/Ohana/src/delstar/src/delstar_client.c
r35730 r35743 58 58 } 59 59 60 case MODE_FIX_LAP_EDGES_DELETE: { 61 if (!delete_fix_LAP_edges_delete()) { 62 fprintf (stderr, "problem loading edge measures\n"); 63 exit (1); 64 } 65 exit (0); 66 break; 67 } 68 60 69 case MODE_IMAGEFILE: 61 70 break; -
branches/eam_branches/ipp-20130509/Ohana/src/libdvo/include/dvo.h
r35736 r35743 251 251 /* definitions for parallel dvo host information 252 252 XXX : need better names (safer namespace) 253 */253 */ 254 254 255 255 typedef enum {
Note:
See TracChangeset
for help on using the changeset viewer.
