IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4426


Ignore:
Timestamp:
Jun 28, 2005, 5:23:19 PM (21 years ago)
Author:
drobbin
Message:

changed psPolynomial allocaters to accept unsigned int

Location:
trunk/psLib
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psFunctions.c

    r4422 r4426  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.113 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-29 00:43:46 $
     9 *  @version $Revision: 1.114 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-29 03:23:19 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    10691069    This routine must allocate memory for the polynomial structures.
    10701070 *****************************************************************************/
    1071 psPolynomial1D* psPolynomial1DAlloc(int n,
     1071psPolynomial1D* psPolynomial1DAlloc(unsigned int n,
    10721072                                    psPolynomialType type)
    10731073{
     
    10941094}
    10951095
    1096 psPolynomial2D* psPolynomial2DAlloc(int nX, int nY,
     1096psPolynomial2D* psPolynomial2DAlloc(unsigned int nX, unsigned int nY,
    10971097                                    psPolynomialType type)
    10981098{
     
    11301130}
    11311131
    1132 psPolynomial3D* psPolynomial3DAlloc(int nX, int nY, int nZ,
     1132psPolynomial3D* psPolynomial3DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ,
    11331133                                    psPolynomialType type)
    11341134{
     
    11761176}
    11771177
    1178 psPolynomial4D* psPolynomial4DAlloc(int nX, int nY, int nZ, int nT,
     1178psPolynomial4D* psPolynomial4DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ, unsigned int nT,
    11791179                                    psPolynomialType type)
    11801180{
     
    14311431
    14321432
    1433 psDPolynomial1D* psDPolynomial1DAlloc(int n,
     1433psDPolynomial1D* psDPolynomial1DAlloc(unsigned int n,
    14341434                                      psPolynomialType type)
    14351435{
     
    14561456}
    14571457
    1458 psDPolynomial2D* psDPolynomial2DAlloc(int nX, int nY,
     1458psDPolynomial2D* psDPolynomial2DAlloc(unsigned int nX, unsigned int nY,
    14591459                                      psPolynomialType type)
    14601460{
     
    14921492}
    14931493
    1494 psDPolynomial3D* psDPolynomial3DAlloc(int nX, int nY, int nZ,
     1494psDPolynomial3D* psDPolynomial3DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ,
    14951495                                      psPolynomialType type)
    14961496{
     
    15381538}
    15391539
    1540 psDPolynomial4D* psDPolynomial4DAlloc(int nX, int nY, int nZ, int nT,
     1540psDPolynomial4D* psDPolynomial4DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ, unsigned int nT,
    15411541                                      psPolynomialType type)
    15421542{
  • trunk/psLib/src/dataManip/psFunctions.h

    r4422 r4426  
    1212 *  @author GLG, MHPCC
    1313 *
    14  *  @version $Revision: 1.50 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-06-29 00:43:46 $
     14 *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-06-29 03:23:19 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    126126 */
    127127psPolynomial1D* psPolynomial1DAlloc(
    128     int n,                   ///< Number of terms
     128    unsigned int n,                   ///< Number of terms
    129129    psPolynomialType type              ///< Polynomial Type
    130130);
     
    135135 */
    136136psPolynomial2D* psPolynomial2DAlloc(
    137     int nX,                   ///< Number of terms in x
    138     int nY,                   ///< Number of terms in y
     137    unsigned int nX,                   ///< Number of terms in x
     138    unsigned int nY,                   ///< Number of terms in y
    139139    psPolynomialType type              ///< Polynomial Type
    140140);
     
    145145 */
    146146psPolynomial3D* psPolynomial3DAlloc(
    147     int nX,                   ///< Number of terms in x
    148     int nY,                   ///< Number of terms in y
    149     int nZ,                   ///< Number of terms in z
     147    unsigned int nX,                   ///< Number of terms in x
     148    unsigned int nY,                   ///< Number of terms in y
     149    unsigned int nZ,                   ///< Number of terms in z
    150150    psPolynomialType type              ///< Polynomial Type
    151151);
     
    156156 */
    157157psPolynomial4D* psPolynomial4DAlloc(
    158     int nX,                   ///< Number of terms in x
    159     int nY,                   ///< Number of terms in y
    160     int nZ,                   ///< Number of terms in z
    161     int nT,                   ///< Number of terms in t
     158    unsigned int nX,                   ///< Number of terms in x
     159    unsigned int nY,                   ///< Number of terms in y
     160    unsigned int nZ,                   ///< Number of terms in z
     161    unsigned int nT,                   ///< Number of terms in t
    162162    psPolynomialType type              ///< Polynomial Type
    163163);
     
    306306 */
    307307psDPolynomial1D* psDPolynomial1DAlloc(
    308     int n,                           ///< Number of terms
     308    unsigned int n,                           ///< Number of terms
    309309    psPolynomialType type              ///< Polynomial Type
    310310);
     
    315315 */
    316316psDPolynomial2D* psDPolynomial2DAlloc(
    317     int nX,                          ///< Number of terms in x
    318     int nY,                          ///< Number of terms in y
     317    unsigned int nX,                          ///< Number of terms in x
     318    unsigned int nY,                          ///< Number of terms in y
    319319    psPolynomialType type              ///< Polynomial Type
    320320);
     
    325325 */
    326326psDPolynomial3D* psDPolynomial3DAlloc(
    327     int nX,                          ///< Number of terms in x
    328     int nY,                          ///< Number of terms in y
    329     int nZ,                          ///< Number of terms in z
     327    unsigned int nX,                          ///< Number of terms in x
     328    unsigned int nY,                          ///< Number of terms in y
     329    unsigned int nZ,                          ///< Number of terms in z
    330330    psPolynomialType type              ///< Polynomial Type
    331331);
     
    336336 */
    337337psDPolynomial4D* psDPolynomial4DAlloc(
    338     int nX,                          ///< Number of terms in w
    339     int nY,                          ///< Number of terms in x
    340     int nZ,                          ///< Number of terms in y
    341     int nT,                          ///< Number of terms in z
     338    unsigned int nX,                          ///< Number of terms in w
     339    unsigned int nY,                          ///< Number of terms in x
     340    unsigned int nZ,                          ///< Number of terms in y
     341    unsigned int nT,                          ///< Number of terms in z
    342342    psPolynomialType type              ///< Polynomial Type
    343343);
  • trunk/psLib/src/math/psPolynomial.c

    r4422 r4426  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.113 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-29 00:43:46 $
     9 *  @version $Revision: 1.114 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-29 03:23:19 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    10691069    This routine must allocate memory for the polynomial structures.
    10701070 *****************************************************************************/
    1071 psPolynomial1D* psPolynomial1DAlloc(int n,
     1071psPolynomial1D* psPolynomial1DAlloc(unsigned int n,
    10721072                                    psPolynomialType type)
    10731073{
     
    10941094}
    10951095
    1096 psPolynomial2D* psPolynomial2DAlloc(int nX, int nY,
     1096psPolynomial2D* psPolynomial2DAlloc(unsigned int nX, unsigned int nY,
    10971097                                    psPolynomialType type)
    10981098{
     
    11301130}
    11311131
    1132 psPolynomial3D* psPolynomial3DAlloc(int nX, int nY, int nZ,
     1132psPolynomial3D* psPolynomial3DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ,
    11331133                                    psPolynomialType type)
    11341134{
     
    11761176}
    11771177
    1178 psPolynomial4D* psPolynomial4DAlloc(int nX, int nY, int nZ, int nT,
     1178psPolynomial4D* psPolynomial4DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ, unsigned int nT,
    11791179                                    psPolynomialType type)
    11801180{
     
    14311431
    14321432
    1433 psDPolynomial1D* psDPolynomial1DAlloc(int n,
     1433psDPolynomial1D* psDPolynomial1DAlloc(unsigned int n,
    14341434                                      psPolynomialType type)
    14351435{
     
    14561456}
    14571457
    1458 psDPolynomial2D* psDPolynomial2DAlloc(int nX, int nY,
     1458psDPolynomial2D* psDPolynomial2DAlloc(unsigned int nX, unsigned int nY,
    14591459                                      psPolynomialType type)
    14601460{
     
    14921492}
    14931493
    1494 psDPolynomial3D* psDPolynomial3DAlloc(int nX, int nY, int nZ,
     1494psDPolynomial3D* psDPolynomial3DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ,
    14951495                                      psPolynomialType type)
    14961496{
     
    15381538}
    15391539
    1540 psDPolynomial4D* psDPolynomial4DAlloc(int nX, int nY, int nZ, int nT,
     1540psDPolynomial4D* psDPolynomial4DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ, unsigned int nT,
    15411541                                      psPolynomialType type)
    15421542{
  • trunk/psLib/src/math/psPolynomial.h

    r4422 r4426  
    1212 *  @author GLG, MHPCC
    1313 *
    14  *  @version $Revision: 1.50 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-06-29 00:43:46 $
     14 *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-06-29 03:23:19 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    126126 */
    127127psPolynomial1D* psPolynomial1DAlloc(
    128     int n,                   ///< Number of terms
     128    unsigned int n,                   ///< Number of terms
    129129    psPolynomialType type              ///< Polynomial Type
    130130);
     
    135135 */
    136136psPolynomial2D* psPolynomial2DAlloc(
    137     int nX,                   ///< Number of terms in x
    138     int nY,                   ///< Number of terms in y
     137    unsigned int nX,                   ///< Number of terms in x
     138    unsigned int nY,                   ///< Number of terms in y
    139139    psPolynomialType type              ///< Polynomial Type
    140140);
     
    145145 */
    146146psPolynomial3D* psPolynomial3DAlloc(
    147     int nX,                   ///< Number of terms in x
    148     int nY,                   ///< Number of terms in y
    149     int nZ,                   ///< Number of terms in z
     147    unsigned int nX,                   ///< Number of terms in x
     148    unsigned int nY,                   ///< Number of terms in y
     149    unsigned int nZ,                   ///< Number of terms in z
    150150    psPolynomialType type              ///< Polynomial Type
    151151);
     
    156156 */
    157157psPolynomial4D* psPolynomial4DAlloc(
    158     int nX,                   ///< Number of terms in x
    159     int nY,                   ///< Number of terms in y
    160     int nZ,                   ///< Number of terms in z
    161     int nT,                   ///< Number of terms in t
     158    unsigned int nX,                   ///< Number of terms in x
     159    unsigned int nY,                   ///< Number of terms in y
     160    unsigned int nZ,                   ///< Number of terms in z
     161    unsigned int nT,                   ///< Number of terms in t
    162162    psPolynomialType type              ///< Polynomial Type
    163163);
     
    306306 */
    307307psDPolynomial1D* psDPolynomial1DAlloc(
    308     int n,                           ///< Number of terms
     308    unsigned int n,                           ///< Number of terms
    309309    psPolynomialType type              ///< Polynomial Type
    310310);
     
    315315 */
    316316psDPolynomial2D* psDPolynomial2DAlloc(
    317     int nX,                          ///< Number of terms in x
    318     int nY,                          ///< Number of terms in y
     317    unsigned int nX,                          ///< Number of terms in x
     318    unsigned int nY,                          ///< Number of terms in y
    319319    psPolynomialType type              ///< Polynomial Type
    320320);
     
    325325 */
    326326psDPolynomial3D* psDPolynomial3DAlloc(
    327     int nX,                          ///< Number of terms in x
    328     int nY,                          ///< Number of terms in y
    329     int nZ,                          ///< Number of terms in z
     327    unsigned int nX,                          ///< Number of terms in x
     328    unsigned int nY,                          ///< Number of terms in y
     329    unsigned int nZ,                          ///< Number of terms in z
    330330    psPolynomialType type              ///< Polynomial Type
    331331);
     
    336336 */
    337337psDPolynomial4D* psDPolynomial4DAlloc(
    338     int nX,                          ///< Number of terms in w
    339     int nY,                          ///< Number of terms in x
    340     int nZ,                          ///< Number of terms in y
    341     int nT,                          ///< Number of terms in z
     338    unsigned int nX,                          ///< Number of terms in w
     339    unsigned int nY,                          ///< Number of terms in x
     340    unsigned int nZ,                          ///< Number of terms in y
     341    unsigned int nT,                          ///< Number of terms in z
    342342    psPolynomialType type              ///< Polynomial Type
    343343);
  • trunk/psLib/src/math/psSpline.c

    r4422 r4426  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.113 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2005-06-29 00:43:46 $
     9 *  @version $Revision: 1.114 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2005-06-29 03:23:19 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    10691069    This routine must allocate memory for the polynomial structures.
    10701070 *****************************************************************************/
    1071 psPolynomial1D* psPolynomial1DAlloc(int n,
     1071psPolynomial1D* psPolynomial1DAlloc(unsigned int n,
    10721072                                    psPolynomialType type)
    10731073{
     
    10941094}
    10951095
    1096 psPolynomial2D* psPolynomial2DAlloc(int nX, int nY,
     1096psPolynomial2D* psPolynomial2DAlloc(unsigned int nX, unsigned int nY,
    10971097                                    psPolynomialType type)
    10981098{
     
    11301130}
    11311131
    1132 psPolynomial3D* psPolynomial3DAlloc(int nX, int nY, int nZ,
     1132psPolynomial3D* psPolynomial3DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ,
    11331133                                    psPolynomialType type)
    11341134{
     
    11761176}
    11771177
    1178 psPolynomial4D* psPolynomial4DAlloc(int nX, int nY, int nZ, int nT,
     1178psPolynomial4D* psPolynomial4DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ, unsigned int nT,
    11791179                                    psPolynomialType type)
    11801180{
     
    14311431
    14321432
    1433 psDPolynomial1D* psDPolynomial1DAlloc(int n,
     1433psDPolynomial1D* psDPolynomial1DAlloc(unsigned int n,
    14341434                                      psPolynomialType type)
    14351435{
     
    14561456}
    14571457
    1458 psDPolynomial2D* psDPolynomial2DAlloc(int nX, int nY,
     1458psDPolynomial2D* psDPolynomial2DAlloc(unsigned int nX, unsigned int nY,
    14591459                                      psPolynomialType type)
    14601460{
     
    14921492}
    14931493
    1494 psDPolynomial3D* psDPolynomial3DAlloc(int nX, int nY, int nZ,
     1494psDPolynomial3D* psDPolynomial3DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ,
    14951495                                      psPolynomialType type)
    14961496{
     
    15381538}
    15391539
    1540 psDPolynomial4D* psDPolynomial4DAlloc(int nX, int nY, int nZ, int nT,
     1540psDPolynomial4D* psDPolynomial4DAlloc(unsigned int nX, unsigned int nY, unsigned int nZ, unsigned int nT,
    15411541                                      psPolynomialType type)
    15421542{
  • trunk/psLib/src/math/psSpline.h

    r4422 r4426  
    1212 *  @author GLG, MHPCC
    1313 *
    14  *  @version $Revision: 1.50 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2005-06-29 00:43:46 $
     14 *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2005-06-29 03:23:19 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    126126 */
    127127psPolynomial1D* psPolynomial1DAlloc(
    128     int n,                   ///< Number of terms
     128    unsigned int n,                   ///< Number of terms
    129129    psPolynomialType type              ///< Polynomial Type
    130130);
     
    135135 */
    136136psPolynomial2D* psPolynomial2DAlloc(
    137     int nX,                   ///< Number of terms in x
    138     int nY,                   ///< Number of terms in y
     137    unsigned int nX,                   ///< Number of terms in x
     138    unsigned int nY,                   ///< Number of terms in y
    139139    psPolynomialType type              ///< Polynomial Type
    140140);
     
    145145 */
    146146psPolynomial3D* psPolynomial3DAlloc(
    147     int nX,                   ///< Number of terms in x
    148     int nY,                   ///< Number of terms in y
    149     int nZ,                   ///< Number of terms in z
     147    unsigned int nX,                   ///< Number of terms in x
     148    unsigned int nY,                   ///< Number of terms in y
     149    unsigned int nZ,                   ///< Number of terms in z
    150150    psPolynomialType type              ///< Polynomial Type
    151151);
     
    156156 */
    157157psPolynomial4D* psPolynomial4DAlloc(
    158     int nX,                   ///< Number of terms in x
    159     int nY,                   ///< Number of terms in y
    160     int nZ,                   ///< Number of terms in z
    161     int nT,                   ///< Number of terms in t
     158    unsigned int nX,                   ///< Number of terms in x
     159    unsigned int nY,                   ///< Number of terms in y
     160    unsigned int nZ,                   ///< Number of terms in z
     161    unsigned int nT,                   ///< Number of terms in t
    162162    psPolynomialType type              ///< Polynomial Type
    163163);
     
    306306 */
    307307psDPolynomial1D* psDPolynomial1DAlloc(
    308     int n,                           ///< Number of terms
     308    unsigned int n,                           ///< Number of terms
    309309    psPolynomialType type              ///< Polynomial Type
    310310);
     
    315315 */
    316316psDPolynomial2D* psDPolynomial2DAlloc(
    317     int nX,                          ///< Number of terms in x
    318     int nY,                          ///< Number of terms in y
     317    unsigned int nX,                          ///< Number of terms in x
     318    unsigned int nY,                          ///< Number of terms in y
    319319    psPolynomialType type              ///< Polynomial Type
    320320);
     
    325325 */
    326326psDPolynomial3D* psDPolynomial3DAlloc(
    327     int nX,                          ///< Number of terms in x
    328     int nY,                          ///< Number of terms in y
    329     int nZ,                          ///< Number of terms in z
     327    unsigned int nX,                          ///< Number of terms in x
     328    unsigned int nY,                          ///< Number of terms in y
     329    unsigned int nZ,                          ///< Number of terms in z
    330330    psPolynomialType type              ///< Polynomial Type
    331331);
     
    336336 */
    337337psDPolynomial4D* psDPolynomial4DAlloc(
    338     int nX,                          ///< Number of terms in w
    339     int nY,                          ///< Number of terms in x
    340     int nZ,                          ///< Number of terms in y
    341     int nT,                          ///< Number of terms in z
     338    unsigned int nX,                          ///< Number of terms in w
     339    unsigned int nY,                          ///< Number of terms in x
     340    unsigned int nZ,                          ///< Number of terms in y
     341    unsigned int nT,                          ///< Number of terms in z
    342342    psPolynomialType type              ///< Polynomial Type
    343343);
  • trunk/psLib/test/dataManip/tst_psFunc00.c

    r4422 r4426  
    1414*    orders are created.
    1515*
    16 *    @version $Revision: 1.22 $  $Name: not supported by cvs2svn $
    17 *    @date $Date: 2005-06-29 00:43:46 $
     16*    @version $Revision: 1.23 $  $Name: not supported by cvs2svn $
     17*    @date $Date: 2005-06-29 03:23:19 $
    1818*
    1919*  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    9999    psFree(my1DPoly);
    100100
    101     // Attempt to allocate with negative order
    102     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    103     if(psPolynomial1DAlloc(-1,PS_POLYNOMIAL_ORD) != NULL) {
    104         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    105         return 7;
    106     }
    107 
     101    /*    // Attempt to allocate with negative order
     102        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     103        if(psPolynomial1DAlloc(-1,PS_POLYNOMIAL_ORD) != NULL) {
     104            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     105            return 7;
     106        }
     107    */
    108108    return 0;
    109109}
     
    151151    psFree(my1DDPoly);
    152152
    153     // Attempt to allocate with negative order
    154     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    155     if(psDPolynomial1DAlloc(-1,PS_POLYNOMIAL_ORD) != NULL) {
    156         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    157         return 7;
    158     }
    159 
     153    /*    // Attempt to allocate with negative order
     154        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     155        if(psDPolynomial1DAlloc(-1,PS_POLYNOMIAL_ORD) != NULL) {
     156            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     157            return 7;
     158        }
     159    */
    160160    return 0;
    161161}
     
    211211    psFree(my2DPoly);
    212212
    213     // Attempt to allocate with negative order
    214     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    215     if(psPolynomial2DAlloc(-1,1,PS_POLYNOMIAL_ORD) != NULL) {
    216         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    217         return 8;
    218     }
    219     // Attempt to allocate with negative order
    220     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    221     if(psPolynomial2DAlloc(1,-1,PS_POLYNOMIAL_ORD) != NULL) {
    222         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    223         return 9;
    224     }
    225 
     213    /*    // Attempt to allocate with negative order
     214        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     215        if(psPolynomial2DAlloc(-1,1,PS_POLYNOMIAL_ORD) != NULL) {
     216            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     217            return 8;
     218        }
     219        // Attempt to allocate with negative order
     220        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     221        if(psPolynomial2DAlloc(1,-1,PS_POLYNOMIAL_ORD) != NULL) {
     222            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     223            return 9;
     224        }
     225    */
    226226    return 0;
    227227}
     
    276276    }
    277277    psFree(my2DDPoly);
    278 
    279     // Attempt to allocate with negative order
    280     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    281     if(psDPolynomial2DAlloc(-1,1,PS_POLYNOMIAL_ORD) != NULL) {
    282         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    283         return 8;
    284     }
    285     // Attempt to allocate with negative order
    286     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    287     if(psDPolynomial2DAlloc(1,-1,PS_POLYNOMIAL_ORD) != NULL) {
    288         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    289         return 9;
    290     }
    291 
     278    /*
     279        // Attempt to allocate with negative order
     280        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     281        if(psDPolynomial2DAlloc(-1,1,PS_POLYNOMIAL_ORD) != NULL) {
     282            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     283            return 8;
     284        }
     285        // Attempt to allocate with negative order
     286        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     287        if(psDPolynomial2DAlloc(1,-1,PS_POLYNOMIAL_ORD) != NULL) {
     288            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     289            return 9;
     290        }
     291    */
    292292    return 0;
    293293}
     
    351351    psFree(my3DPoly);
    352352
    353     // Attempt to allocate with negative order
    354     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    355     if(psPolynomial3DAlloc(-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
    356         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    357         return 9;
    358     }
    359     // Attempt to allocate with negative order
    360     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    361     if(psPolynomial3DAlloc(1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
    362         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    363         return 10;
    364     }
    365     // Attempt to allocate with negative order
    366     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    367     if(psPolynomial3DAlloc(1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
    368         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    369         return 11;
    370     }
    371 
     353    /*    // Attempt to allocate with negative order
     354        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     355        if(psPolynomial3DAlloc(-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
     356            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     357            return 9;
     358        }
     359        // Attempt to allocate with negative order
     360        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     361        if(psPolynomial3DAlloc(1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
     362            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     363            return 10;
     364        }
     365        // Attempt to allocate with negative order
     366        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     367        if(psPolynomial3DAlloc(1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
     368            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     369            return 11;
     370        }
     371    */
    372372    return 0;
    373373}
     
    431431    psFree(my3DDPoly);
    432432
    433     // Attempt to allocate with negative order
    434     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    435     if(psDPolynomial3DAlloc(-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
    436         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    437         return 9;
    438     }
    439     // Attempt to allocate with negative order
    440     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    441     if(psDPolynomial3DAlloc(1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
    442         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    443         return 10;
    444     }
    445     // Attempt to allocate with negative order
    446     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    447     if(psDPolynomial3DAlloc(1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
    448         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    449         return 11;
    450     }
    451 
     433    /*    // Attempt to allocate with negative order
     434        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     435        if(psDPolynomial3DAlloc(-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
     436            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     437            return 9;
     438        }
     439        // Attempt to allocate with negative order
     440        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     441        if(psDPolynomial3DAlloc(1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
     442            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     443            return 10;
     444        }
     445        // Attempt to allocate with negative order
     446        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     447        if(psDPolynomial3DAlloc(1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
     448            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     449            return 11;
     450        }
     451    */
    452452    return 0;
    453453}
     
    519519    psFree(my4DPoly);
    520520
    521     // Attempt to allocate with negative order
    522     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    523     if(psPolynomial4DAlloc(-1,1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
    524         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    525         return 10;
    526     }
    527     // Attempt to allocate with negative order
    528     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    529     if(psPolynomial4DAlloc(1,-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
    530         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    531         return 11;
    532     }
    533     // Attempt to allocate with negative order
    534     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    535     if(psPolynomial4DAlloc(1,1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
    536         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    537         return 12;
    538     }
    539     // Attempt to allocate with negative order
    540     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    541     if(psPolynomial4DAlloc(1,1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
    542         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    543         return 13;
    544     }
    545 
     521    /*    // Attempt to allocate with negative order
     522        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     523        if(psPolynomial4DAlloc(-1,1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
     524            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     525            return 10;
     526        }
     527        // Attempt to allocate with negative order
     528        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     529        if(psPolynomial4DAlloc(1,-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
     530            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     531            return 11;
     532        }
     533        // Attempt to allocate with negative order
     534        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     535        if(psPolynomial4DAlloc(1,1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
     536            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     537            return 12;
     538        }
     539        // Attempt to allocate with negative order
     540        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     541        if(psPolynomial4DAlloc(1,1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
     542            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     543            return 13;
     544        }
     545    */
    546546    return 0;
    547547}
     
    613613    psFree(my4DDPoly);
    614614
    615     // Attempt to allocate with negative order
    616     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    617     if(psDPolynomial4DAlloc(-1,1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
    618         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    619         return 10;
    620     }
    621     // Attempt to allocate with negative order
    622     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    623     if(psDPolynomial4DAlloc(1,-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
    624         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    625         return 11;
    626     }
    627     // Attempt to allocate with negative order
    628     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    629     if(psDPolynomial4DAlloc(1,1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
    630         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    631         return 12;
    632     }
    633     // Attempt to allocate with negative order
    634     psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
    635     if(psDPolynomial4DAlloc(1,1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
    636         psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
    637         return 13;
    638     }
    639 
    640     return 0;
    641 }
    642 
     615    /*    // Attempt to allocate with negative order
     616        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     617        if(psDPolynomial4DAlloc(-1,1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
     618            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     619            return 10;
     620        }
     621        // Attempt to allocate with negative order
     622        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     623        if(psDPolynomial4DAlloc(1,-1,1,1,PS_POLYNOMIAL_ORD) != NULL) {
     624            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     625            return 11;
     626        }
     627        // Attempt to allocate with negative order
     628        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     629        if(psDPolynomial4DAlloc(1,1,-1,1,PS_POLYNOMIAL_ORD) != NULL) {
     630            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     631            return 12;
     632        }
     633        // Attempt to allocate with negative order
     634        psLogMsg(__func__,PS_LOG_INFO,"Following should generate error msg for negative terms");
     635        if(psDPolynomial4DAlloc(1,1,1,-1,PS_POLYNOMIAL_ORD) != NULL) {
     636            psError(PS_ERR_UNKNOWN,true,"Returned structure but expected NULL");
     637            return 13;
     638        }
     639    */
     640    return 0;
     641}
     642
  • trunk/psLib/test/dataManip/verified/tst_psFunc00.stderr

    r4422 r4426  
    55\**********************************************************************************/
    66
    7 <DATE><TIME>|<HOST>|I|testPolynomial1DAlloc
    8     Following should generate error msg for negative terms
    9 <DATE><TIME>|<HOST>|E|psPolynomial1DAlloc (FILE:LINENO)
    10     Error: n is 0 or less.
    117
    128---> TESTPOINT PASSED (psPolynomialXD{psPolynomial1DAlloc} | tst_psFunc00.c)
     
    1814\**********************************************************************************/
    1915
    20 <DATE><TIME>|<HOST>|I|testPolynomial2DAlloc
    21     Following should generate error msg for negative terms
    22 <DATE><TIME>|<HOST>|E|psPolynomial2DAlloc (FILE:LINENO)
    23     Error: nX is 0 or less.
    24 <DATE><TIME>|<HOST>|I|testPolynomial2DAlloc
    25     Following should generate error msg for negative terms
    26 <DATE><TIME>|<HOST>|E|psPolynomial2DAlloc (FILE:LINENO)
    27     Error: nY is 0 or less.
    2816
    2917---> TESTPOINT PASSED (psPolynomialXD{psPolynomial2DAlloc} | tst_psFunc00.c)
     
    3523\**********************************************************************************/
    3624
    37 <DATE><TIME>|<HOST>|I|testPolynomial3DAlloc
    38     Following should generate error msg for negative terms
    39 <DATE><TIME>|<HOST>|E|psPolynomial3DAlloc (FILE:LINENO)
    40     Error: nX is 0 or less.
    41 <DATE><TIME>|<HOST>|I|testPolynomial3DAlloc
    42     Following should generate error msg for negative terms
    43 <DATE><TIME>|<HOST>|E|psPolynomial3DAlloc (FILE:LINENO)
    44     Error: nY is 0 or less.
    45 <DATE><TIME>|<HOST>|I|testPolynomial3DAlloc
    46     Following should generate error msg for negative terms
    47 <DATE><TIME>|<HOST>|E|psPolynomial3DAlloc (FILE:LINENO)
    48     Error: nZ is 0 or less.
    4925
    5026---> TESTPOINT PASSED (psPolynomialXD{psPolynomial3DAlloc} | tst_psFunc00.c)
     
    5632\**********************************************************************************/
    5733
    58 <DATE><TIME>|<HOST>|I|testPolynomial4DAlloc
    59     Following should generate error msg for negative terms
    60 <DATE><TIME>|<HOST>|E|psPolynomial4DAlloc (FILE:LINENO)
    61     Error: nX is 0 or less.
    62 <DATE><TIME>|<HOST>|I|testPolynomial4DAlloc
    63     Following should generate error msg for negative terms
    64 <DATE><TIME>|<HOST>|E|psPolynomial4DAlloc (FILE:LINENO)
    65     Error: nY is 0 or less.
    66 <DATE><TIME>|<HOST>|I|testPolynomial4DAlloc
    67     Following should generate error msg for negative terms
    68 <DATE><TIME>|<HOST>|E|psPolynomial4DAlloc (FILE:LINENO)
    69     Error: nZ is 0 or less.
    70 <DATE><TIME>|<HOST>|I|testPolynomial4DAlloc
    71     Following should generate error msg for negative terms
    72 <DATE><TIME>|<HOST>|E|psPolynomial4DAlloc (FILE:LINENO)
    73     Error: nT is 0 or less.
    7434
    7535---> TESTPOINT PASSED (psPolynomialXD{psPolynomial4DAlloc} | tst_psFunc00.c)
     
    8141\**********************************************************************************/
    8242
    83 <DATE><TIME>|<HOST>|I|testDPolynomial1DAlloc
    84     Following should generate error msg for negative terms
    85 <DATE><TIME>|<HOST>|E|psDPolynomial1DAlloc (FILE:LINENO)
    86     Error: n is 0 or less.
    8743
    8844---> TESTPOINT PASSED (psPolynomialXD{psDPolynomial1DAlloc} | tst_psFunc00.c)
     
    9450\**********************************************************************************/
    9551
    96 <DATE><TIME>|<HOST>|I|testDPolynomial2DAlloc
    97     Following should generate error msg for negative terms
    98 <DATE><TIME>|<HOST>|E|psDPolynomial2DAlloc (FILE:LINENO)
    99     Error: nX is 0 or less.
    100 <DATE><TIME>|<HOST>|I|testDPolynomial2DAlloc
    101     Following should generate error msg for negative terms
    102 <DATE><TIME>|<HOST>|E|psDPolynomial2DAlloc (FILE:LINENO)
    103     Error: nY is 0 or less.
    10452
    10553---> TESTPOINT PASSED (psPolynomialXD{psDPolynomial2DAlloc} | tst_psFunc00.c)
     
    11159\**********************************************************************************/
    11260
    113 <DATE><TIME>|<HOST>|I|testDPolynomial3DAlloc
    114     Following should generate error msg for negative terms
    115 <DATE><TIME>|<HOST>|E|psDPolynomial3DAlloc (FILE:LINENO)
    116     Error: nX is 0 or less.
    117 <DATE><TIME>|<HOST>|I|testDPolynomial3DAlloc
    118     Following should generate error msg for negative terms
    119 <DATE><TIME>|<HOST>|E|psDPolynomial3DAlloc (FILE:LINENO)
    120     Error: nY is 0 or less.
    121 <DATE><TIME>|<HOST>|I|testDPolynomial3DAlloc
    122     Following should generate error msg for negative terms
    123 <DATE><TIME>|<HOST>|E|psDPolynomial3DAlloc (FILE:LINENO)
    124     Error: nZ is 0 or less.
    12561
    12662---> TESTPOINT PASSED (psPolynomialXD{psDPolynomial3DAlloc} | tst_psFunc00.c)
     
    13268\**********************************************************************************/
    13369
    134 <DATE><TIME>|<HOST>|I|testDPolynomial4DAlloc
    135     Following should generate error msg for negative terms
    136 <DATE><TIME>|<HOST>|E|psDPolynomial4DAlloc (FILE:LINENO)
    137     Error: nX is 0 or less.
    138 <DATE><TIME>|<HOST>|I|testDPolynomial4DAlloc
    139     Following should generate error msg for negative terms
    140 <DATE><TIME>|<HOST>|E|psDPolynomial4DAlloc (FILE:LINENO)
    141     Error: nY is 0 or less.
    142 <DATE><TIME>|<HOST>|I|testDPolynomial4DAlloc
    143     Following should generate error msg for negative terms
    144 <DATE><TIME>|<HOST>|E|psDPolynomial4DAlloc (FILE:LINENO)
    145     Error: nZ is 0 or less.
    146 <DATE><TIME>|<HOST>|I|testDPolynomial4DAlloc
    147     Following should generate error msg for negative terms
    148 <DATE><TIME>|<HOST>|E|psDPolynomial4DAlloc (FILE:LINENO)
    149     Error: nT is 0 or less.
    15070
    15171---> TESTPOINT PASSED (psPolynomialXD{psDPolynomial4DAlloc} | tst_psFunc00.c)
Note: See TracChangeset for help on using the changeset viewer.