IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 20, 2014, 11:30:04 AM (12 years ago)
Author:
eugene
Message:

addstar work with lensing and without lensing entries; resort also works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140610/Ohana/src/addstar/src/build_links.c

    r36921 r36922  
    237237
    238238  ALLOCATE (next_lens, off_t, Nlensing);
    239   for (i = 0; i < Naverage; i++, N++) {
     239  for (i = 0; i < Naverage; i++) {
     240    if (!average[i].Nlensing) continue;
    240241    for (j = 0; j < average[i].Nlensing - 1; j++, N++) {
    241242      next_lens[N] = N + 1;
     
    253254      abort ();
    254255    }
     256    N++;
    255257  }
    256258  return (next_lens);
     
    346348  ALLOCATE (tmplensing, Lensing, Nlensing);
    347349  for (i = 0; i < Naverage; i++) {
     350    if (!average[i].Nlensing) continue;
    348351    n = average[i].lensingOffset;
    349352    average[i].lensingOffset = N;
Note: See TracChangeset for help on using the changeset viewer.