IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27724


Ignore:
Timestamp:
Apr 21, 2010, 4:06:21 PM (16 years ago)
Author:
eugene
Message:

N and n were not being correctly set

File:
1 edited

Legend:

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

    r27583 r27724  
    1010int merge_catalogs_old (SkyRegion *region, Catalog *output, Catalog *input, double RADIUS) {
    1111
    12   off_t i, j, n, N, Nin, offset, J, Jmin, status, Nstars;
     12  off_t i, j, Nin, offset, J, Jmin, status, Nstars;
    1313  double RADIUS2, Rmin, Rin, Din;
    1414  double *X1, *Y1, *X2, *Y2;
     
    152152    /*** a match is found, add to average, measure ***/
    153153    Nmatch ++;
    154     n = N2[Jmin];
    155     N = N1[i];
     154    off_t n = N2[Jmin];
     155    off_t N = N1[i];
    156156
    157157    /* make sure there is space for next Nmeasure entries */
     
    223223  /* these new entries are all written out in UPDATE mode */
    224224  for (i = 0; i < Nstars; i++) {
     225    off_t N = N1[i];
     226
    225227    /* make sure there is space for next entry */
    226228    if (Nmeas + input[0].average[N].Nmeasure >= NMEAS) {
     
    235237    }
    236238
    237     N = N1[i];
    238239    if (input[0].found[N] >= 0) continue;
    239240    if (!IN_REGION (input[0].average[N].R, input[0].average[N].D)) continue;
Note: See TracChangeset for help on using the changeset viewer.