IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29181


Ignore:
Timestamp:
Sep 21, 2010, 1:44:37 PM (16 years ago)
Author:
bills
Message:

Unused secfilt entries were not getting initialized properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c

    r28855 r29181  
    317317    objID ++;
    318318
     319    for (j = 0; j < NsecfiltOut; j++) {
     320        int outputIndex = (Nave * NsecfiltOut) + j;
     321        output[0].secfilt[outputIndex].M     = NAN;
     322        output[0].secfilt[outputIndex].dM    = NAN;
     323        output[0].secfilt[outputIndex].Xm    = NAN_S_SHORT;
     324        output[0].secfilt[outputIndex].M_20  = NAN_S_SHORT;
     325        output[0].secfilt[outputIndex].M_80  = NAN_S_SHORT;
     326        output[0].secfilt[outputIndex].Ncode = 0;
     327        output[0].secfilt[outputIndex].Nused = 0;
     328    }
     329
    319330    for (j = 0; j < NsecfiltIn; j++) {
    320331      int outputIndex;
     
    333344        output[0].secfilt[outputIndex].Ncode = input[0].secfilt[N*NsecfiltIn+j].Ncode;
    334345        output[0].secfilt[outputIndex].Nused = input[0].secfilt[N*NsecfiltIn+j].Nused;
    335       } else {
    336         output[0].secfilt[outputIndex].M     = NAN;
    337         output[0].secfilt[outputIndex].dM    = NAN;
    338         output[0].secfilt[outputIndex].Xm    = NAN_S_SHORT;
    339         output[0].secfilt[outputIndex].M_20  = NAN_S_SHORT;
    340         output[0].secfilt[outputIndex].M_80  = NAN_S_SHORT;
    341         output[0].secfilt[outputIndex].Ncode = 0;
    342         output[0].secfilt[outputIndex].Nused = 0;
    343346      }
    344347    }
Note: See TracChangeset for help on using the changeset viewer.