IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 30, 2008, 11:13:15 AM (18 years ago)
Author:
eugene
Message:

allow functions to use FLT or INT vectors as appropriate; document valid types

File:
1 edited

Legend:

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

    r20857 r20859  
    102102     catalog.average[N1[i]].R = RA[i] */
    103103
     104  N = 0;
    104105  NPTS = 100;
    105   ALLOCATE (Xvec.elements.Flt, opihi_flt, NPTS);
    106   ALLOCATE (Yvec.elements.Flt, opihi_flt, NPTS);
     106  ResetVector (Xvec, OPIHI_FLT, NPTS);
     107  ResetVector (Yvec, OPIHI_FLT, NPTS);
    107108  dYvec.elements.Flt = NULL;
    108   if (ErrorBars) { ALLOCATE (dYvec.elements.Flt, opihi_flt, NPTS); }
    109   N = 0;
     109  if (ErrorBars) {   
     110    ResetVector (Yvec, OPIHI_FLT, NPTS);
     111  }
    110112
    111113  GetTimeFormat (&TimeReference, &TimeFormat);
Note: See TracChangeset for help on using the changeset viewer.