Changeset 39353
- Timestamp:
- Feb 18, 2016, 6:23:49 AM (10 years ago)
- Location:
- trunk/Ohana/src/relphot/src
- Files:
-
- 2 edited
-
assign_images.c (modified) (1 diff)
-
launch_region_hosts.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/src/assign_images.c
r39351 r39353 26 26 char mapfile[DVO_MAX_PATH]; 27 27 snprintf (mapfile, DVO_MAX_PATH, "%s/AstroMap.fits", CATDIR); 28 table = AstromOffsetMapLoad (mapfile, 100000, VERBOSE);28 AstromOffsetTable *table = AstromOffsetMapLoad (mapfile, 100000, VERBOSE); 29 29 30 30 // assign images.coords.offsetMap -> table->map[i] 31 31 if (table) { 32 32 AstromOffsetTableMatchChips (image, Nimage, table); 33 } else {34 table = AstromOffsetTableInit ();35 33 } 36 34 -
trunk/Ohana/src/relphot/src/launch_region_hosts.c
r38441 r39353 6 6 int i; 7 7 8 // clear the I/O files 9 for (i = 0; i < regionHosts->Nhosts; i++) { 10 char *syncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "meanmags.sync"); 11 if (truncate (syncfile, 0)) fprintf (stderr, "trouble clearing syncfile %s\n", syncfile); 12 free (syncfile); 8 // do not remove the sync and fits files if we do a manual run -- user must clear if needed 9 if (!PARALLEL_REGIONS_MANUAL) { 10 // clear the I/O files 11 for (i = 0; i < regionHosts->Nhosts; i++) { 12 char *syncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "meanmags.sync"); 13 if (truncate (syncfile, 0)) fprintf (stderr, "trouble clearing syncfile %s\n", syncfile); 14 free (syncfile); 13 15 14 char *fitsfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "meanmags.fits");15 if (truncate (fitsfile, 0)) fprintf (stderr, "trouble clearing fitsfile %s\n", fitsfile );16 free (fitsfile);16 char *fitsfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "meanmags.fits"); 17 if (truncate (fitsfile, 0)) fprintf (stderr, "trouble clearing fitsfile %s\n", fitsfile ); 18 free (fitsfile); 17 19 18 char *imsyncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "imagemags.sync");19 if (truncate (imsyncfile, 0)) fprintf (stderr, "trouble clearing imsyncfile %s\n", imsyncfile);20 free (imsyncfile);20 char *imsyncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "imagemags.sync"); 21 if (truncate (imsyncfile, 0)) fprintf (stderr, "trouble clearing imsyncfile %s\n", imsyncfile); 22 free (imsyncfile); 21 23 22 char *imfitsfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "imagemags.fits");23 if (truncate (imfitsfile, 0)) fprintf (stderr, "trouble clearing imfitsfile %s\n", imfitsfile);24 free (imfitsfile);24 char *imfitsfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "imagemags.fits"); 25 if (truncate (imfitsfile, 0)) fprintf (stderr, "trouble clearing imfitsfile %s\n", imfitsfile); 26 free (imfitsfile); 25 27 26 char *loopsyncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "loop.sync"); 27 if (truncate (loopsyncfile, 0)) fprintf (stderr, "trouble clearing loopsyncfile %s\n", loopsyncfile); 28 free (loopsyncfile); 28 char *loopsyncfile = make_filename (CATDIR, regionHosts->hosts[i].hostname, regionHosts->hosts[i].hostID, "loop.sync"); 29 if (truncate (loopsyncfile, 0)) fprintf (stderr, "trouble clearing loopsyncfile %s\n", loopsyncfile); 30 free (loopsyncfile); 31 } 29 32 } 30 33 … … 37 40 char filename[1024]; 38 41 snprintf (filename, 1024, "%s/Image.%d.fits", CATDIR, host->hostID); 42 if (unlink (filename)) fprintf (stderr, "trouble clearing image %s\n", filename); 39 43 40 44 // write the image subset for this host … … 98 102 } 99 103 104 int status = TRUE; 100 105 if (PARALLEL_REGIONS_MANUAL) { 101 106 fprintf (stderr, "run the relphot_client commands above. when these are done, hit return\n"); … … 103 108 } else { 104 109 RegionHostTableWaitJobsGetIO (regionHosts, __FILE__, __LINE__, VERBOSE); 105 } 106 107 int status = TRUE; 108 for (i = 0; i < regionHosts->Nhosts; i++) { 109 status = status && (regionHosts->hosts[i].status == 0); 110 111 for (i = 0; i < regionHosts->Nhosts; i++) { 112 status = status && (regionHosts->hosts[i].status == 0); 113 } 110 114 } 111 115
Note:
See TracChangeset
for help on using the changeset viewer.
