- Timestamp:
- Feb 16, 2012, 3:41:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/Ohana/src/relphot/src/initialize.c
r33274 r33297 12 12 // load the list of photcodes into the globals (photcodes, Nphotcodes) 13 13 // 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); 15 16 } 16 17 if (USE_GRID && (Nphotcodes > 1)) { … … 58 59 void initialize_client (int argc, char **argv) { 59 60 61 // XXX need to determine which globals can affect relphot_client in either mode and pass appropriately 62 60 63 relphot_client_help (argc, argv); 61 64 ConfigInit (&argc, argv); … … 63 66 64 67 // load the list of photcodes into the globals (photcodes, Nphotcodes) 65 ParsePhotcodeList (argv[1]); 68 PhotcodeList = strcreate (argv[1]); 69 ParsePhotcodeList (PhotcodeList); 66 70 } 67 71 … … 80 84 while ((codename = strtok_r (list, ",", &ptr)) != NULL) { 81 85 list = NULL; // pass NULL on successive strtok_r calls 82 fprintf (stderr, "PHOTCODE LIST: %s\n", myList);83 fprintf (stderr, "codename: %s\n", codename);84 86 if ((photcodes[Nphotcodes] = GetPhotcodebyName (codename)) == NULL) { 85 87 fprintf (stderr, "ERROR: photcode %s not found in photcode table\n", codename);
Note:
See TracChangeset
for help on using the changeset viewer.
