IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 16, 2012, 2:14:22 PM (14 years ago)
Author:
eugene
Message:

rework dvo_client calls to pass the command via a file, not the cmd line (parens too complex)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/opihi/dvo/avmatch.c

    r33543 r33563  
    4848    remove_argument (N, &argc, argv);
    4949    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);
    5850  }
    5951
     
    9890
    9991    // 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);
    10293    if (vec) free (vec);
    10394   
     
    225216  // write vectors to a table (this is used by parallel dvo operations, but can be used elsewhere)
    226217  // only write the fields which were in a valid catalog
    227   if (ResultFile) {
     218  if (RESULT_FILE) {
    228219    // extend the array by one to hold index array
    229220    REALLOCATE (vec, Vector *, Nfields + 1);
     
    271262      vec[i][0].Nelements = Nfound;
    272263    }
    273     int status = WriteVectorTableFITS (ResultFile, "RESULT", vec, Nfields + 1, FALSE, NULL);
     264    int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nfields + 1, FALSE, NULL);
    274265    free (vec[Nfields]->elements.Int);
    275266    free (vec[Nfields]);
Note: See TracChangeset for help on using the changeset viewer.