IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 16, 2012, 3:41:58 PM (14 years ago)
Author:
eugene
Message:

relphot parallel works, at least in a serial mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/initialize.c

    r33274 r33297  
    1212    // load the list of photcodes into the globals (photcodes, Nphotcodes)
    1313    // only a single remaining argument in this mode (the list of photcodes, eg g,r,i)
    14     ParsePhotcodeList (argv[1]);
     14    PhotcodeList = strcreate (argv[1]);
     15    ParsePhotcodeList (PhotcodeList);
    1516  }
    1617  if (USE_GRID && (Nphotcodes > 1)) {
     
    5859void initialize_client (int argc, char **argv) {
    5960
     61  // XXX need to determine which globals can affect relphot_client in either mode and pass appropriately
     62
    6063  relphot_client_help (argc, argv);
    6164  ConfigInit (&argc, argv);
     
    6366
    6467  // load the list of photcodes into the globals (photcodes, Nphotcodes)
    65   ParsePhotcodeList (argv[1]);
     68  PhotcodeList = strcreate (argv[1]);
     69  ParsePhotcodeList (PhotcodeList);
    6670}
    6771
     
    8084  while ((codename = strtok_r (list, ",", &ptr)) != NULL) {
    8185    list = NULL; // pass NULL on successive strtok_r calls
    82     fprintf (stderr, "PHOTCODE LIST: %s\n", myList);
    83     fprintf (stderr, "codename: %s\n", codename);
    8486    if ((photcodes[Nphotcodes] = GetPhotcodebyName (codename)) == NULL) {
    8587      fprintf (stderr, "ERROR: photcode %s not found in photcode table\n", codename);
Note: See TracChangeset for help on using the changeset viewer.