IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33571


Ignore:
Timestamp:
Mar 20, 2012, 2:15:30 PM (14 years ago)
Author:
eugene
Message:

fix threaded version for 2nd and later loops

Location:
branches/eam_branches/ipp-20111122/Ohana/src/relastro/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/UpdateChips.c

    r33570 r33571  
    5959  for (i = 0; i < Nimage; i++) {
    6060
     61    // XXX looks like everything below is thread safe : we can unroll this into a set of
     62    // helper functions that grab the next available chip....
     63
    6164    /* skip all except WRP images */
    6265    if (strcmp(&image[i].coords.ctype[4], "-WRP")) {
     
    155158
    156159  image = getimages (&Nimage, NULL);
     160  nextImage = 0;
    157161
    158162  // save fit results for summary plot
  • branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/UpdateObjects.c

    r33545 r33571  
    7474  T2000 = ohana_date_to_sec ("2000/01/01");
    7575  // XXX in the future, use catalog[0].Nsecfilt only?  allow catalogs to have variable Nsecfilt?
     76
    7677  Nsecfilt = GetPhotcodeNsecfilt ();
    77   assert (catalog[0].Nsecfilt == Nsecfilt);
     78  if (Ncatalog) {
     79    assert (catalog[0].Nsecfilt == Nsecfilt);
     80  }
    7881
    7982  NaveSum = NparSum = NpmSum = NskipSum = 0;
  • branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/args.c

    r33570 r33571  
    364364
    365365  NTHREADS = 0;
    366   if ((N = get_argument (argc, argv, "-nthreads"))) {
     366  if ((N = get_argument (argc, argv, "-threads"))) {
    367367    remove_argument (N, &argc, argv);
    368368    NTHREADS = atof (argv[N]);
  • branches/eam_branches/ipp-20111122/Ohana/src/relastro/src/relastro_images.c

    r33448 r33571  
    3131  catalog = load_catalogs (skylist, &Ncatalog, TRUE, 0, NULL);
    3232  MARKTIME("load catalog data: %f sec\n", dtime);
     33
     34  if (Ncatalog == 0) {
     35    fprintf (stderr, "ERROR: no valid data for relastro, exiting\n");
     36    exit (2);
     37  }
    3338
    3439  /* match measurements with images */
Note: See TracChangeset for help on using the changeset viewer.