IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27496


Ignore:
Timestamp:
Mar 28, 2010, 1:17:56 PM (16 years ago)
Author:
eugene
Message:

better handling for certain aborts; clarify verbosity

Location:
branches/eam_branches/relastro.20100326
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relastro.20100326/include/relastro.h

    r27489 r27496  
    9191
    9292int    VERBOSE;
     93int    VERBOSE2;
    9394
    9495int    RESET;
  • branches/eam_branches/relastro.20100326/src/ImageOps.c

    r27490 r27496  
    163163  }
    164164
    165   for (i = 0; VERBOSE && (i < Nimage); i++) {
     165  for (i = 0; VERBOSE2 && (i < Nimage); i++) {
    166166    name = GetPhotcodeNamebyCode (image[i].photcode);
    167167    fprintf (stderr, "image %lld has %lld measures (%s, %s)\n", (long long) i, (long long) Nlist[i],
     
    183183  idx = getImageByID (ID);
    184184  if (idx == -1) {
    185     fprintf (stderr, "can't match detection to image?\n");
    186     abort();
     185    if (VERBOSE2) fprintf (stderr, "can't match detection to image?\n");
     186    return;
    187187  }
    188188
     
    257257    return;
    258258  }
    259   fprintf (stderr, "can't match detection to image?\n");
    260   abort();
     259  if (VERBOSE2) fprintf (stderr, "can't match detection to image?\n");
     260  return;
    261261}
    262262# endif
     
    429429  if (!badCoords(im)) {
    430430    fprintf (stderr, "ERROR: inconsistent result?");
    431     exit (1);
     431    abort();
    432432  }
    433433
     
    500500    if (mosaic == NULL) {
    501501      fprintf (stderr, "mosaic not found for image %s\n", image[im].name);
    502       exit (1);
     502      abort();
    503503    }
    504504    moscoords = &mosaic[0].coords;
     
    575575    if (mosaic == NULL) {
    576576      fprintf (stderr, "mosaic not found for image %s\n", image[im].name);
    577       exit (1);
     577      abort ();
    578578    }
    579579    moscoords = &mosaic[0].coords;
  • branches/eam_branches/relastro.20100326/src/args.c

    r24308 r27496  
    111111  }
    112112
    113   VERBOSE = FALSE;
     113  VERBOSE = VERBOSE2 = FALSE;
    114114  if ((N = get_argument (argc, argv, "-v"))) {
    115115    VERBOSE = TRUE;
     116    remove_argument (N, &argc, argv);
     117  }
     118  if ((N = get_argument (argc, argv, "-vv"))) {
     119    VERBOSE = VERBOSE2 = TRUE;
    116120    remove_argument (N, &argc, argv);
    117121  }
Note: See TracChangeset for help on using the changeset viewer.