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_psFunc02.c

    r2730 r3096  
    5656    }
    5757
    58     if (tmpSpline->domains == NULL) {
    59         printf("ERROR: Could not allocate psSpline1D->domains data structure\n");
     58    if (tmpSpline->knots == NULL) {
     59        printf("ERROR: Could not allocate psSpline1D->knots data structure\n");
    6060        testStatus = false;
    6161    }
    6262
    6363    for (i=0;i<N+1;i++) {
    64         printf("psSpline1D->domains[%d] is %f\n", i, tmpSpline->domains[i]);
     64        printf("psSpline1D->knots->data.F32[%d] is %f\n", i,
     65               tmpSpline->knots->data.F32[i]);
    6566    }
    6667
     
    137138    }
    138139
    139     if (tmpSpline->domains == NULL) {
    140         printf("ERROR: Could not allocate psSpline1D->domains data structure\n");
     140    if (tmpSpline->knots == NULL) {
     141        printf("ERROR: Could not allocate psSpline1D->knots data structure\n");
    141142        testStatus = false;
    142143    }
    143144
    144145    for (i=0;i<N+1;i++) {
    145         printf("psSpline1D->domains[%d] is %f\n", i, tmpSpline->domains[i]);
     146        printf("psSpline1D->knots->data.F32[%d] is %f\n", i,
     147               tmpSpline->knots->data.F32[i]);
    146148    }
    147149
     
    191193    }
    192194
    193     if (tmpSpline->domains == NULL) {
    194         printf("ERROR: Could not allocate psSpline1D->domains data structure\n");
     195    if (tmpSpline->knots == NULL) {
     196        printf("ERROR: Could not allocate psSpline1D->knots data structure\n");
    195197        testStatus = false;
    196198    }
    197199
    198200    for (i=0;i<N+1;i++) {
    199         printf("psSpline1D->domains[%d] is %f\n", i, tmpSpline->domains[i]);
     201        printf("psSpline1D->data.F32[%d] is %f\n", i,
     202               tmpSpline->knots->data.F32[i]);
    200203    }
    201204
     
    272275    }
    273276
    274     if (tmpSpline->domains == NULL) {
    275         printf("ERROR: Could not allocate psSpline1D->domains data structure\n");
     277    if (tmpSpline->knots == NULL) {
     278        printf("ERROR: Could not allocate psSpline1D->knots data structure\n");
    276279        testStatus = false;
    277280    }
    278281
    279282    for (i=0;i<N+1;i++) {
    280         printf("psSpline1D->domains[%d] is %f\n", i, tmpSpline->domains[i]);
     283        printf("psSpline1D->knots->data.F32[%d] is %f\n", i,
     284               tmpSpline->knots->data.F32[i]);
    281285    }
    282286
     
    331335    }
    332336
    333     if (tmpSpline->domains == NULL) {
    334         printf("ERROR: Could not allocate psSpline1D->domains data structure\n");
     337    if (tmpSpline->knots == NULL) {
     338        printf("ERROR: Could not allocate psSpline1D->knots data structure\n");
    335339        testStatus = false;
    336340    }
    337341
    338342    for (i=0;i<N+1;i++) {
    339         printf("psSpline1D->domains[%d] is %f\n", i, tmpSpline->domains[i]);
     343        printf("psSpline1D->knots->data.F32[%d] is %f\n", i,
     344               tmpSpline->knots->data.F32[i]);
    340345    }
    341346    psFree(bounds);
Note: See TracChangeset for help on using the changeset viewer.