IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7996


Ignore:
Timestamp:
Jul 27, 2006, 2:03:05 PM (20 years ago)
Author:
eugene
Message:

added test of NFIELD range, fixed exit status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/gastro2/src/ConfigInit.c

    r6242 r7996  
    1111    fprintf (stderr, "ERROR: can't find configuration file %s\n", file);
    1212    if (file != (char *) NULL) free (file);
    13     exit (0);
     13    exit (1);
    1414  }
    1515  if (VERBOSE) fprintf (stderr, "loaded config file: %s\n", file);
     
    5454  if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR");
    5555
     56  if (NFIELD <= 0.0) {
     57      fprintf (stderr, "NFIELD is not sensible: choose a non-zero number\n");
     58      exit (1);
     59  }
     60
    5661  if (strcasecmp (ROUGH_ASTROMETRY, "header") &&
    5762      strcasecmp (ROUGH_ASTROMETRY, "config")) {
    5863    fprintf (stderr, "ROUGH_ASTROMETRY must be one of: header, config\n");
    59     exit (0);
     64    exit (1);
    6065  }
    6166  free (config);
Note: See TracChangeset for help on using the changeset viewer.