IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 26, 2005, 10:41:04 AM (21 years ago)
Author:
gusciora
Message:

Substituted knots for domains in the spline structs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataManip/tst_psFunc03.c

    r2392 r3096  
    6161    }
    6262
    63     if (tmpSpline->domains == NULL) {
    64         printf("ERROR: Could not allocate psSpline1D->domains data structure\n");
     63    if (tmpSpline->knots == NULL) {
     64        printf("ERROR: Could not allocate psSpline1D->knots data structure\n");
    6565        testStatus = false;
    6666    }
    6767
    6868    for (i=0;i<N+1;i++) {
    69         if (tmpSpline->domains[i] != bounds->data.F32[i]) {
    70             printf("ERROR: psSpline1D->domains[%d] is %f\n", i, tmpSpline->domains[i]);
     69        if (tmpSpline->knots->data.F32[i] != bounds->data.F32[i]) {
     70            printf("ERROR: psSpline1D->knots->data.F32[%d] is %f\n", i,
     71                   tmpSpline->knots->data.F32[i]);
    7172        }
    7273    }
     
    121122    }
    122123
    123     if (tmpSpline->domains == NULL) {
    124         printf("ERROR: Could not allocate psSpline1D->domains data structure\n");
     124    if (tmpSpline->knots == NULL) {
     125        printf("ERROR: Could not allocate psSpline1D->knots data structure\n");
    125126        testStatus = false;
    126127    }
    127128
    128129    for (i=0;i<N+1;i++) {
    129         if (tmpSpline->domains[i] != bounds->data.F32[i]) {
    130             printf("ERROR: psSpline1D->domains[%d] is %f\n", i, tmpSpline->domains[i]);
     130        if (tmpSpline->knots->data.F32[i] != bounds->data.F32[i]) {
     131            printf("ERROR: psSpline1D->knots->data.F32[%d] is %f\n", i,
     132                   tmpSpline->knots->data.F32[i]);
    131133        }
    132134    }
Note: See TracChangeset for help on using the changeset viewer.