IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37978


Ignore:
Timestamp:
Mar 13, 2015, 1:20:49 PM (11 years ago)
Author:
eugene
Message:

free pthreads; initialize StarData; do not access BrightStar data after freeing

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

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/BrightCatalog.c

    r37958 r37978  
    9191    ALLOCATE (measure, MeasureTiny, Nrow);
    9292    for (i = 0; i < Nrow; i++) {
     93      memset (&measure[i], 0, sizeof(MeasureTiny));
    9394      measure[i].R         = R[i];
    9495      measure[i].D         = D[i];
     
    111112      measure[i].catID     = catID[i];
    112113      measure[i].photcode  = photcode[i];
     114      measure[i].dXccd     = 0.0;
     115      measure[i].dYccd     = 0.0;
     116      measure[i].dRsys     = 0.0;
     117      measure[i].myDet     = 0;
    113118    }
    114119    // fprintf (stderr, "loaded data for %lld measures\n", (long long) Nrow);
  • branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/ImageOps.c

    r37807 r37978  
    763763    ref[i].dMag = measure[0].dM;
    764764    ref[i].dPos = GetAstromErrorTiny (&measure[0], ERROR_MODE_POS);
     765    ref[i].ColorBlue = NAN;
     766    ref[i].ColorRed = NAN;
    765767
    766768    if ((DCR_BLUE_NSEC_POS >= 0) && (DCR_BLUE_NSEC_NEG >= -1)) {
  • branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/UpdateChips.c

    r37807 r37978  
    223223
    224224  // all threads are done, free the threads array and grab the info
     225  for (i = 0; i < NTHREADS; i++) {
     226    pthread_detach (threads[i]);
     227  }
    225228  free (threads);
    226229 
  • branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/load_catalogs.c

    r37958 r37978  
    271271  Catalog *catalog = catalogs->catalog;
    272272  *Ncatalog = catalogs->Ncatalog;
    273   BrightCatalogSplitFree (catalogs);
    274273
    275274  int Nmeasure = 0;
     
    279278    Naverage += catalogs->catalog[i].Naverage;
    280279  }
    281 
    282280  fprintf (stderr, "loaded %d catalogs, using a total of %d stars (%d measures)\n", catalogs->Ncatalog, Naverage, Nmeasure);
    283281  client_logger_message ("loaded %d catalogs, using a total of %d stars (%d measures)\n", catalogs->Ncatalog, Naverage, Nmeasure);
    284282
     283  BrightCatalogSplitFree (catalogs);
     284
    285285  return (catalog);
    286286}     
Note: See TracChangeset for help on using the changeset viewer.