- Timestamp:
- Mar 16, 2012, 2:14:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/opihi/dvo/avmatch.c
r33543 r33563 48 48 remove_argument (N, &argc, argv); 49 49 PARALLEL = TRUE; 50 }51 52 // dump results directly to fits file (esp for parallel dvo)53 char *ResultFile = NULL;54 if ((N = get_argument (argc, argv, "-result"))) {55 remove_argument (N, &argc, argv);56 ResultFile = strcreate(argv[N]);57 remove_argument (N, &argc, argv);58 50 } 59 51 … … 98 90 99 91 // I need to pass the RA & DEC vectors to the remote clients... 100 int status = HostTableParallelOps (argc, argv, ResultFile, RAvec->Nelements); 101 if (ResultFile) free (ResultFile); 92 int status = HostTableParallelOps (argc, argv, RESULT_FILE, RAvec->Nelements); 102 93 if (vec) free (vec); 103 94 … … 225 216 // write vectors to a table (this is used by parallel dvo operations, but can be used elsewhere) 226 217 // only write the fields which were in a valid catalog 227 if (R esultFile) {218 if (RESULT_FILE) { 228 219 // extend the array by one to hold index array 229 220 REALLOCATE (vec, Vector *, Nfields + 1); … … 271 262 vec[i][0].Nelements = Nfound; 272 263 } 273 int status = WriteVectorTableFITS (R esultFile, "RESULT", vec, Nfields + 1, FALSE, NULL);264 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nfields + 1, FALSE, NULL); 274 265 free (vec[Nfields]->elements.Int); 275 266 free (vec[Nfields]);
Note:
See TracChangeset
for help on using the changeset viewer.
