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

    r20820 r20839  
    11# include "dvoshell.h"
    22
     3// XXX need to promote values (and dbStack entries) to opihi_flt, but wait until done testing
    34int avextract (int argc, char **argv) {
    45 
     
    116117      if (!dbBooleanCond (stack, Nstack, values)) continue;
    117118      for (n = 0; n < Nreturn; n++) {
    118         vec[n][0].elements[Npts] = values[n];
     119        vec[n][0].elements.Flt[Npts] = values[n];
    119120      }
    120121      Npts++;
     
    122123        NPTS += 2000;
    123124        for (n = 0; n < Nreturn; n++) {
    124           REALLOCATE (vec[n][0].elements, float, NPTS);
     125          REALLOCATE (vec[n][0].elements.Flt, opihi_flt, NPTS);
    125126        }
    126127      }
     
    132133  for (n = 0; n < Nreturn; n++) {
    133134    vec[n][0].Nelements = Npts;
    134     REALLOCATE (vec[n][0].elements, float, MAX(1,Npts));
     135    REALLOCATE (vec[n][0].elements.Flt, opihi_flt, MAX(1,Npts));
    135136  }
    136137
Note: See TracChangeset for help on using the changeset viewer.