IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 7, 2008, 3:31:01 PM (18 years ago)
Author:
eugene
Message:

big update from eam_branch_20081124 with updates to Opihi math

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/gstar.c

    r19823 r20936  
    136136    N = 0;
    137137    NPTS = 1000;
    138     ALLOCATE (vec1[0].elements, float, NPTS);
    139     ALLOCATE (vec2[0].elements, float, NPTS);
    140     ALLOCATE (vec3[0].elements, float, NPTS);
    141     ALLOCATE (vec4[0].elements, float, NPTS);
     138    ResetVector (vec1, OPIHI_FLT, NPTS);
     139    ResetVector (vec2, OPIHI_FLT, NPTS);
     140    ResetVector (vec3, OPIHI_FLT, NPTS);
     141    ResetVector (vec4, OPIHI_FLT, NPTS);
    142142  }
    143143
     
    250250         
    251251          if (SaveVectors) {
    252             vec1[0].elements[N] = Mcat;
    253             vec2[0].elements[N] = TimeValue (catalog.measure[m].t, TimeReference, TimeFormat);
    254             vec3[0].elements[N] = catalog.measure[m].airmass;
    255             vec4[0].elements[N] = catalog.measure[m].photcode;
     252            vec1[0].elements.Flt[N] = Mcat;
     253            vec2[0].elements.Flt[N] = TimeValue (catalog.measure[m].t, TimeReference, TimeFormat);
     254            vec3[0].elements.Flt[N] = catalog.measure[m].airmass;
     255            vec4[0].elements.Flt[N] = catalog.measure[m].photcode;
    256256            N ++;
    257257            if (N == NPTS - 1) {
    258258              NPTS += 2000;
    259               REALLOCATE (vec1[0].elements, float, NPTS);
    260               REALLOCATE (vec2[0].elements, float, NPTS);
    261               REALLOCATE (vec3[0].elements, float, NPTS);
    262               REALLOCATE (vec4[0].elements, float, NPTS);
     259              REALLOCATE (vec1[0].elements.Flt, opihi_flt, NPTS);
     260              REALLOCATE (vec2[0].elements.Flt, opihi_flt, NPTS);
     261              REALLOCATE (vec3[0].elements.Flt, opihi_flt, NPTS);
     262              REALLOCATE (vec4[0].elements.Flt, opihi_flt, NPTS);
    263263            }
    264264          }
Note: See TracChangeset for help on using the changeset viewer.