IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 28, 2005, 2:43:46 PM (21 years ago)
Author:
drobbin
Message:

made requested revisions to psPolynomials per apidelta-report-cycle6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/astronomy/tst_psCoord.c

    r3682 r4422  
    66*  @author GLG, MHPCC
    77*
    8 *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2005-04-07 20:27:41 $
     8*  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2005-06-29 00:43:46 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    104104}
    105105
    106 #define NW_TERMS 2
    107 #define NX_TERMS 3
    108 #define NY_TERMS 4
    109 #define NZ_TERMS 5
     106#define NX_TERMS 2
     107#define NY_TERMS 3
     108#define NZ_TERMS 4
     109#define NT_TERMS 5
    110110
    111111psS32 testPlaneTransformAlloc( void )
     
    170170{
    171171    // Invoke function with known parameters
    172     psPlaneDistort *myPD = psPlaneDistortAlloc(NW_TERMS, NX_TERMS, NY_TERMS, NZ_TERMS);
     172    psPlaneDistort *myPD = psPlaneDistortAlloc(NX_TERMS, NY_TERMS, NZ_TERMS, NT_TERMS);
    173173
    174174    // Verify NULL is not returned
     
    178178    }
    179179    // Verify the terms are properly set after allocation
    180     if (myPD->x->nW != NW_TERMS) {
    181         psError(PS_ERR_UNKNOWN,true,"myPD->x->nW is %d, should be %d",
    182                 myPD->x->nW, NW_TERMS);
    183         return 2;
    184     }
    185     if (myPD->y->nW != NW_TERMS) {
    186         psError(PS_ERR_UNKNOWN,true,"myPD->y->nW is %d, should be %d",
    187                 myPD->y->nW, NW_TERMS);
    188         return 3;
    189     }
    190180    if (myPD->x->nX != NX_TERMS) {
    191181        psError(PS_ERR_UNKNOWN,true,"myPD->x->nX is %d, should be %d",
    192182                myPD->x->nX, NX_TERMS);
    193         return 4;
     183        return 2;
    194184    }
    195185    if (myPD->y->nX != NX_TERMS) {
    196186        psError(PS_ERR_UNKNOWN,true,"myPD->y->nX is %d, should be %d",
    197187                myPD->y->nX, NX_TERMS);
    198         return 5;
     188        return 3;
    199189    }
    200190    if (myPD->x->nY != NY_TERMS) {
    201191        psError(PS_ERR_UNKNOWN,true,"myPD->x->nY is %d, should be %d",
    202192                myPD->x->nY, NY_TERMS);
    203         return 6;
     193        return 4;
    204194    }
    205195    if (myPD->y->nY != NY_TERMS) {
    206196        psError(PS_ERR_UNKNOWN,true,"myPD->y->nY is %d, should be %d",
    207197                myPD->y->nY, NY_TERMS);
    208         return 7;
     198        return 5;
    209199    }
    210200    if (myPD->x->nZ != NZ_TERMS) {
    211201        psError(PS_ERR_UNKNOWN,true,"myPD->x->nZ is %d, should be %d",
    212202                myPD->x->nZ, NZ_TERMS);
    213         return 8;
     203        return 6;
    214204    }
    215205    if (myPD->y->nZ != NZ_TERMS) {
    216206        psError(PS_ERR_UNKNOWN,true,"myPD->y->nZ is %d, should be %d",
    217207                myPD->y->nZ, NZ_TERMS);
     208        return 7;
     209    }
     210    if (myPD->x->nT != NT_TERMS) {
     211        psError(PS_ERR_UNKNOWN,true,"myPD->x->nT is %d, should be %d",
     212                myPD->x->nT, NT_TERMS);
     213        return 8;
     214    }
     215    if (myPD->y->nT != NT_TERMS) {
     216        psError(PS_ERR_UNKNOWN,true,"myPD->y->nT is %d, should be %d",
     217                myPD->y->nT, NT_TERMS);
    218218        return 9;
    219219    }
Note: See TracChangeset for help on using the changeset viewer.