Changeset 27096 for trunk/pswarp/src/pswarpArguments.c
- Timestamp:
- Feb 25, 2010, 4:26:50 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/src/pswarpArguments.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src/pswarpArguments.c
r25538 r27096 26 26 // load config data from default locations 27 27 pmConfig *config = pmConfigRead(&argc, argv, PSWARP_RECIPE); 28 if ( config == NULL) {29 psError( PSWARP_ERR_CONFIG, false, "Can't read siteconfiguration");28 if (!config) { 29 psError(psErrorCodeLast(), false, "Can't read configuration"); 30 30 return NULL; 31 31 } … … 33 33 // save the following additional recipe values based on command-line options 34 34 // these options override the PSWARP recipe values loaded from recipe files 35 pmConfigRecipeOptions (config, PSWARP_RECIPE); 35 if (!pmConfigRecipeOptions(config, PSWARP_RECIPE)) { 36 psError(psErrorCodeLast(), false, "Can't do something with recipes"); 37 psFree(config); 38 return NULL; 39 } 36 40 37 41 pmConfigFileSetsMD(config->arguments, &argc, argv, "ASTROM", "-astrom", "-astromlist"); … … 72 76 psThreadPoolInit (nThreads); 73 77 } 74 pswarpSetThreads ();78 pswarpSetThreads(); 75 79 76 80 if ((N = psArgumentGet(argc, argv, "-dumpconfig"))) { … … 160 164 bool PSF = psMetadataLookupBool(&status, recipe, "PSF"); ///< Generate a PSF model? 161 165 if (!status) { 162 PSF = true;166 PSF = true; 163 167 psWarning("PSF is not set in the %s recipe --- defaulting to TRUE.", PSWARP_RECIPE); 164 168 }
Note:
See TracChangeset
for help on using the changeset viewer.
