IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5294 for trunk/psLib/test/math


Ignore:
Timestamp:
Oct 12, 2005, 11:02:20 AM (21 years ago)
Author:
gusciora
Message:

Polynomial members are now nX, nY, nZ, nT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/math/tst_psFunc00.c

    r5091 r5294  
    1616*    XXX: Compare to FLT_EPSILON
    1717*
    18 *    @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
    19 *    @date $Date: 2005-09-22 03:00:31 $
     18*    @version $Revision: 1.6 $  $Name: not supported by cvs2svn $
     19*    @date $Date: 2005-10-12 21:02:20 $
    2020*
    2121*  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    6565    }
    6666    // Verify polynomial structure members set properly
    67     if(my1DPoly->COOL_1D_n != ORDER) {
    68         psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
    69                 my1DPoly->COOL_1D_n, ORDER);
     67    if(my1DPoly->nX != ORDER) {
     68        psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
     69                my1DPoly->nX, ORDER);
    7070        return 2;
    7171    }
     
    117117    }
    118118    // Verify polynomial structure members set properly
    119     if(my2DPoly->COOL_2D_nX != ORDER) {
    120         psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
    121                 my2DPoly->COOL_2D_nX, ORDER);
     119    if(my2DPoly->nX != ORDER) {
     120        psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
     121                my2DPoly->nX, ORDER);
    122122        return 2;
    123123    }
    124124    // Verify polynomial structure members set properly
    125     if(my2DPoly->COOL_2D_nY != ORDER+1) {
    126         psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
    127                 my2DPoly->COOL_2D_nY, ORDER+1);
     125    if(my2DPoly->nY != ORDER+1) {
     126        psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
     127                my2DPoly->nY, ORDER+1);
    128128        return 3;
    129129    }
     
    184184    }
    185185    // Verify polynomial structure members set properly
    186     if(my3DPoly->COOL_3D_nX != ORDER) {
    187         psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
    188                 my3DPoly->COOL_3D_nX, ORDER);
     186    if(my3DPoly->nX != ORDER) {
     187        psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
     188                my3DPoly->nX, ORDER);
    189189        return 2;
    190190    }
    191191    // Verify polynomial structure members set properly
    192     if(my3DPoly->COOL_3D_nY != ORDER+1) {
    193         psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
    194                 my3DPoly->COOL_3D_nY, ORDER+1);
     192    if(my3DPoly->nY != ORDER+1) {
     193        psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
     194                my3DPoly->nY, ORDER+1);
    195195        return 3;
    196196    }
    197197    // Verify polynomial structure members set properly
    198     if(my3DPoly->COOL_3D_nZ != ORDER+2) {
    199         psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
    200                 my3DPoly->COOL_3D_nZ, ORDER+2);
     198    if(my3DPoly->nZ != ORDER+2) {
     199        psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
     200                my3DPoly->nZ, ORDER+2);
    201201        return 4;
    202202    }
     
    264264    }
    265265    // Verify polynomial structure members set properly
    266     if(my4DPoly->COOL_4D_nX != ORDER) {
    267         psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
    268                 my4DPoly->COOL_4D_nX, ORDER);
     266    if(my4DPoly->nX != ORDER) {
     267        psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
     268                my4DPoly->nX, ORDER);
    269269        return 2;
    270270    }
    271271    // Verify polynomial structure members set properly
    272     if(my4DPoly->COOL_4D_nY != ORDER+1) {
    273         psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
    274                 my4DPoly->COOL_4D_nX, ORDER+1);
     272    if(my4DPoly->nY != ORDER+1) {
     273        psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
     274                my4DPoly->nX, ORDER+1);
    275275        return 3;
    276276    }
    277277    // Verify polynomial structure members set properly
    278     if(my4DPoly->COOL_4D_nZ != ORDER+2) {
    279         psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
    280                 my4DPoly->COOL_4D_nZ, ORDER+2);
     278    if(my4DPoly->nZ != ORDER+2) {
     279        psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
     280                my4DPoly->nZ, ORDER+2);
    281281        return 4;
    282282    }
    283283    // Verify polynomial structure members set properly
    284     if(my4DPoly->COOL_4D_nT != ORDER+3) {
    285         psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
    286                 my4DPoly->COOL_4D_nT, ORDER+3);
     284    if(my4DPoly->nT != ORDER+3) {
     285        psError(PS_ERR_UNKNOWN,true,"Number of terms %d not as expected %d",
     286                my4DPoly->nT, ORDER+3);
    287287        return 5;
    288288    }
Note: See TracChangeset for help on using the changeset viewer.