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/mextract.c

    r20820 r20839  
    139139        if (!dbBooleanCond (stack, Nstack, values)) continue;
    140140        for (n = 0; n < Nreturn; n++) {
    141           vec[n][0].elements[Npts] = values[n];
     141          vec[n][0].elements.Flt[Npts] = values[n];
    142142          // fprintf (stderr, "keep : field: %s, value: %f\n", fields[n].name, values[n]);
    143143        }
     
    146146          NPTS += 2000;
    147147          for (n = 0; n < Nreturn; n++) {
    148             REALLOCATE (vec[n][0].elements, float, NPTS);
     148            REALLOCATE (vec[n][0].elements.Flt, opihi_flt, NPTS);
    149149          }
    150150        }
     
    162162  for (n = 0; n < Nreturn; n++) {
    163163    vec[n][0].Nelements = Npts;
    164     REALLOCATE (vec[n][0].elements, float, MAX(1,Npts));
     164    REALLOCATE (vec[n][0].elements.Flt, opihi_flt, MAX(1,Npts));
    165165  }
    166166
Note: See TracChangeset for help on using the changeset viewer.