IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37472


Ignore:
Timestamp:
Oct 8, 2014, 4:48:09 PM (12 years ago)
Author:
eugene
Message:

fix 2 problems found by optimization

Location:
trunk/Ohana/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/loadsupercos_plates.c

    r36485 r37472  
    9292    image[Nimage].Radius = NAN;
    9393   
    94     snprintf (image[Nimage].name, 121, "SCOS.%02d.%06d", survey_id, plate_id);
     94    snprintf (image[Nimage].name, DVO_IMAGE_NAME_LEN, "SCOS.%02d.%06d", survey_id, plate_id);
    9595    image[Nimage].imageID = Nimage + 1;
    9696    image[Nimage].externID = plate_id;
  • trunk/Ohana/src/dvomerge/src/merge_catalogs_new.c

    r37116 r37472  
    1515  Naverage = output[0].Naverage;
    1616  Nmeasure = output[0].Nmeasure;
     17  Nlensing = output[0].Nlensing;
    1718
    1819  NsecfiltOut = output[0].Nsecfilt;
     
    2122  NAVERAGE = Naverage + 100;
    2223  NMEASURE = Nmeasure + 1000;
     24  NLENSING = Nlensing + 1000;
    2325
    2426  REALLOCATE (output[0].average, Average, NAVERAGE);
    2527  REALLOCATE (output[0].secfilt, SecFilt, NAVERAGE*NsecfiltOut);
    2628  REALLOCATE (output[0].measure, Measure, NMEASURE);
     29  REALLOCATE (output[0].lensing, Lensing, NLENSING);
    2730
    2831  // add all of these entries to the existing catalog
Note: See TracChangeset for help on using the changeset viewer.