IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32056


Ignore:
Timestamp:
Aug 9, 2011, 12:25:27 PM (15 years ago)
Author:
eugene
Message:

raise an error for mismatched error vector length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/Ohana/src/opihi/cmd.data/plot.c

    r20936 r32056  
    5353    return (FALSE);
    5454  }
     55  if (dypvec && (dypvec->Nelements != xvec->Nelements)) goto mismatch;
     56  if (dymvec && (dymvec->Nelements != xvec->Nelements)) goto mismatch;
     57  if (dxpvec && (dxpvec->Nelements != xvec->Nelements)) goto mismatch;
     58  if (dxmvec && (dxmvec->Nelements != xvec->Nelements)) goto mismatch;
     59
    5560  Npts = xvec[0].Nelements;
    5661  if (Npts == 0) return (TRUE);
     
    6974  }
    7075  return (TRUE);
     76
     77mismatch:
     78  gprint (GP_ERR, "error and data vector lengths are mismatched\n");
     79  return (FALSE);
    7180}
Note: See TracChangeset for help on using the changeset viewer.