IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 25, 2008, 4:51:39 PM (18 years ago)
Author:
eugene
Message:

convert opihi vectors to double type, add option for int type as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20081124/Ohana/src/opihi/dvo/ccd.c

    r20820 r20839  
    9797      for (i1 = 0; i1 < N1; i1++) {
    9898        for (i2 = 0; i2 < N2; i2++) {
    99           xvec[0].elements[Npts] = M1[i1];
    100           yvec[0].elements[Npts] = M2[i2];
     99          xvec[0].elements.Flt[Npts] = M1[i1];
     100          yvec[0].elements.Flt[Npts] = M2[i2];
    101101          Npts++;
    102102          if (Npts >= NPTS) {
    103103            NPTS += 2000;
    104             REALLOCATE (xvec[0].elements, float, NPTS);
    105             REALLOCATE (yvec[0].elements, float, NPTS);
     104            REALLOCATE (xvec[0].elements.Flt, opihi_flt, NPTS);
     105            REALLOCATE (yvec[0].elements.Flt, opihi_flt, NPTS);
    106106          }
    107107        }
Note: See TracChangeset for help on using the changeset viewer.