Changeset 39487 for trunk/Ohana/src/dvolens/src/update_objects.c
- Timestamp:
- Mar 27, 2016, 3:21:04 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/dvolens/src/update_objects.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvolens/src/update_objects.c
r39484 r39487 37 37 38 38 if (VERBOSE) fprintf (stderr, "re-loading catalog data\n"); 39 40 // XXX I need to load enough of the images to load the warp groups 41 42 if (REPAIR_LENSING_IDS) { 43 load_images (skylist); 44 FindWarpGroups(); 45 } 39 46 40 47 /* load data from each region file */ … … 150 157 table->hosts[i].pathname = tmppath; 151 158 152 char command[1024]; 153 snprintf (command, 1024, "dvolens_client -update-objects -hostID %d -D CATDIR %s -hostdir %s -region %f %f %f %f", 154 table->hosts[i].hostID, CATDIR, table->hosts[i].pathname, 155 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax); 156 157 // options & configs which affect dvolens_client -update-catalogs 159 char *command = NULL; 160 strextend (&command, "dvolens_client -update-objects"); 161 strextend (&command, "-hostID %d", table->hosts[i].hostID); 162 strextend (&command, "-D CATDIR %s", CATDIR); 163 strextend (&command, "-hostdir %s", table->hosts[i].pathname); 164 strextend (&command, "-region %f %f %f %f", UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax); 165 166 // options & configs which affect dvolens_client -update-catalogs: 158 167 // VERBOSE, VERBOSE2, UPDATE 159 160 char tmpline[1024];161 if (VERBOSE ) { snprintf (tmpline, 1024, "%s -v", command); strcpy (command, tmpline); }162 if ( VERBOSE2) { snprintf (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); }163 if ( UPDATE) { snprintf (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); }168 169 if (VERBOSE) strextend (&command, "-v"); 170 if (VERBOSE2) strextend (&command, "-vv"); 171 if (UPDATE) strextend (&command, "-update"); 172 if (REPAIR_LENSING_IDS) strextend (&command, "-repair-lensing-ids"); 164 173 165 174 fprintf (stderr, "command: %s\n", command); 166 175 167 176 if (PARALLEL_MANUAL) { 177 free (command); 168 178 continue; 169 179 } … … 185 195 table->hosts[i].pid = pid; // save for future reference 186 196 } 197 free (command); 187 198 } 188 199 … … 198 209 } 199 210 } 211 212 FreeHostTable (table); 200 213 return (TRUE); 201 214 }
Note:
See TracChangeset
for help on using the changeset viewer.
