Changeset 37650
- Timestamp:
- Nov 20, 2014, 8:31:46 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140904/Ohana/src/addstar/src
- Files:
-
- 5 edited
-
loadICRF_client.c (modified) (1 diff)
-
loadICRF_io.c (modified) (2 diffs)
-
loadICRF_remote_hosts.c (modified) (2 diffs)
-
loadICRF_save_remote.c (modified) (4 diffs)
-
loadstarpar_remote_hosts.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/addstar/src/loadICRF_client.c
r37570 r37650 17 17 SkyList *skylist = SkyRegionByCPT (sky, CPT_FILE); 18 18 19 char cptfile[1024]; 20 snprintf (cptfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[0]->name); 21 19 22 int Nstars; 20 23 ICRF_Stars *stars = loadICRF_load_stars (INPUT, &Nstars); 21 24 22 loadICRF_catalog (stars, Nstars, skylist->regions[0], CPT_FILE, &options);25 loadICRF_catalog (stars, Nstars, skylist->regions[0], cptfile, &options); 23 26 24 27 free (stars); -
branches/eam_branches/ipp-20140904/Ohana/src/addstar/src/loadICRF_io.c
r37570 r37650 81 81 gfits_free_table (&ftable); 82 82 83 fclose (f); 84 83 85 return TRUE; 84 86 } … … 143 145 GET_COLUMN(Map , "M_AP", float); 144 146 GET_COLUMN(dMap , "dM_AP", float); 145 GET_COLUMN(photcode, "PHOTCODE", unsignedint);146 GET_COLUMN(flags , "FLAGS", unsignedint);147 GET_COLUMN(photcode, "PHOTCODE", int); 148 GET_COLUMN(flags , "FLAGS", int); 147 149 148 150 gfits_free_header (&theader); -
branches/eam_branches/ipp-20140904/Ohana/src/addstar/src/loadICRF_remote_hosts.c
r37570 r37650 76 76 if ((pid == -1) && (errno != ECHILD)) myAbort ("programming error?"); 77 77 78 if (DEBUG) fprintf (stdout, "PID %d done\n", pid); 79 78 80 // find the host which has finished 79 81 int i; … … 83 85 if (hosts[i][0].pid != pid) continue; 84 86 found = TRUE; 87 break; 85 88 } 86 89 myAssert (found, "Programming error: failed to matched finished job to known host!"); -
branches/eam_branches/ipp-20140904/Ohana/src/addstar/src/loadICRF_save_remote.c
r37570 r37650 33 33 char filename[1024]; // CATDIR/tmpdir/ICRF.PID.index.fits 34 34 snprintf (filename, 1024, "%s/tmpdir/ICRF.%s.%05d.fits", CATDIR, uniquer, region->index); 35 if (!check_file_access (filename, FALSE, TRUE, TRUE)) exit (2); 35 36 36 37 // write the data to the given FITS file … … 50 51 HostInfo *host = NULL; 51 52 ALLOCATE (host, HostInfo, 1); 53 InitHost (host); 52 54 53 55 // we want to run this job on the host described by hostMach. copy … … 69 71 strextend (command, "-cpt %s", region->name); 70 72 strextend (command, "-input %s", filename); 73 strextend (command, "-D ADDSTAR_RADIUS %f", options->radius); 74 75 fprintf (stderr, "command: %s\n", command); 71 76 72 77 // launch the job on the remote machine (no handshake) … … 78 83 } 79 84 host->pid = pid; // save for future reference 85 fprintf (stderr, "launch cpt %s on %s @ %d\n", region->name, host->pathname, pid); 80 86 81 87 save_remote_host (host); -
branches/eam_branches/ipp-20140904/Ohana/src/addstar/src/loadstarpar_remote_hosts.c
r37417 r37650 83 83 if (hosts[i][0].pid != pid) continue; 84 84 found = TRUE; 85 break; 85 86 } 86 87 myAssert (found, "Programming error: failed to matched finished job to known host!");
Note:
See TracChangeset
for help on using the changeset viewer.
