IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 20, 2012, 3:06:40 PM (14 years ago)
Author:
eugene
Message:

allow all vector results to yield 0 length vectors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/Ohana/src/opihi/mana/findpeaks.c

    r20936 r33312  
    7676  }
    7777
    78   ResetVector (vecx, OPIHI_FLT, MAX (Npeak, 1));
    79   ResetVector (vecy, OPIHI_FLT, MAX (Npeak, 1));
    80   ResetVector (vecz, OPIHI_FLT, MAX (Npeak, 1));
     78  ResetVector (vecx, OPIHI_FLT, Npeak);
     79  ResetVector (vecy, OPIHI_FLT, Npeak);
     80  ResetVector (vecz, OPIHI_FLT, Npeak);
    8181
    8282  /* eliminate non-local peaks */
Note: See TracChangeset for help on using the changeset viewer.