IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2221


Ignore:
Timestamp:
Oct 27, 2004, 1:31:44 PM (22 years ago)
Author:
gusciora
Message:

Parameter checking for the psCOord.c file.

Location:
trunk/psLib/src
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psCoord.c

    r2212 r2221  
    1010*  @author George Gusciora, MHPCC
    1111*
    12 *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-10-27 20:07:17 $
     12*  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-10-27 23:31:43 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2424#include "psCoord.h"
    2525#include "psMemory.h"
    26 #include "psAbort.h"
    2726#include "psTime.h"
    2827#include "psConstants.h"
     
    6968psPlaneTransform* psPlaneTransformAlloc(psS32 n1, psS32 n2)
    7069{
     70    PS_INT_CHECK_NON_NEGATIVE(n1, NULL);
     71    PS_INT_CHECK_NON_NEGATIVE(n2, NULL);
     72
    7173    psPlaneTransform *pt = psAlloc(sizeof(psPlaneTransform));
    7274    pt->x = psDPolynomial2DAlloc(n1, n2, PS_POLYNOMIAL_ORD);
     
    8284{
    8385    PS_PTR_CHECK_NULL(transform, NULL);
     86    PS_PTR_CHECK_NULL(transform->x, NULL);
     87    PS_PTR_CHECK_NULL(transform->y, NULL);
    8488    PS_PTR_CHECK_NULL(coords, NULL);
     89
    8590    if (out == NULL) {
    8691        out = (psPlane* ) psAlloc(sizeof(psPlane));
     
    99104psPlaneDistort* psPlaneDistortAlloc(psS32 n1, psS32 n2, psS32 n3, psS32 n4)
    100105{
     106    PS_INT_CHECK_NON_NEGATIVE(n1, NULL);
     107    PS_INT_CHECK_NON_NEGATIVE(n2, NULL);
     108    PS_INT_CHECK_NON_NEGATIVE(n3, NULL);
     109    PS_INT_CHECK_NON_NEGATIVE(n4, NULL);
     110
    101111    psPlaneDistort *pt = psAlloc(sizeof(psPlaneDistort));
    102112    pt->x = psDPolynomial4DAlloc(n1, n2, n3, n4, PS_POLYNOMIAL_ORD);
     
    118128{
    119129    PS_PTR_CHECK_NULL(transform, NULL);
     130    PS_PTR_CHECK_NULL(transform->x, NULL);
     131    PS_PTR_CHECK_NULL(transform->y, NULL);
    120132    PS_PTR_CHECK_NULL(coords, NULL);
     133
    121134    if (out == NULL) {
    122135        out = (psPlane* ) psAlloc(sizeof(psPlane));
     
    158171    PS_PTR_CHECK_NULL(transform, NULL);
    159172    PS_PTR_CHECK_NULL(coord, NULL);
     173
    160174    double sinY = 0.0;
    161175    double cosY = 0.0;
     
    186200psSphereTransform* psSphereTransformICRSToEcliptic(psTime time)
    187201{
     202    PS_PTR_CHECK_NULL(&time, NULL);
     203
    188204    struct tm *tmTime = psTimeToTM(&time);
    189205    double year = (double)(1900 + tmTime->tm_year);
     
    199215psSphereTransform* psSphereTransformEclipticToICRS(psTime time)
    200216{
     217    PS_PTR_CHECK_NULL(&time, NULL);
     218
    201219    struct tm *tmTime = psTimeToTM(&time);
    202220    double year = (double)(1900 + tmTime->tm_year);
     
    223241XXX: Waiting for the definition of the PS_PROJ_PAR projection.
    224242XXX: Waiting for the definition of the PS_PROJ_GLS projection.
    225 XXX: get rid of the psAborts
    226243 *****************************************************************************/
    227244psPlane* psProject(const psSphere* coord,
     
    261278
    262279    } else if (projection->type == PS_PROJ_PAR) {
    263         psAbort(__func__, "The projection type PS_PROJ_PAR is undefined.\n");
     280        psError(__func__, "The projection type PS_PROJ_PAR is undefined.\n");
    264281
    265282    } else if (projection->type == PS_PROJ_GLS) {
    266         psAbort(__func__, "The projection type PS_PROJ_GLS is undefined.\n");
     283        psError(__func__, "The projection type PS_PROJ_GLS is undefined.\n");
    267284    } else {
    268         psAbort(__func__, "Unknown projection type.\n");
     285        psError(__func__, "Unknown projection type.\n");
    269286    }
    270287
     
    275292XXX: Waiting for the definition of the PS_PROJ_PAR projection.
    276293XXX: Waiting for the definition of the PS_PROJ_GLS projection.
    277 XXX: get rid of the psAborts
    278294 *****************************************************************************/
    279295psSphere* psDeproject(const psPlane* coord,
     
    317333
    318334    } else if (projection->type == PS_PROJ_PAR) {
    319         psAbort(__func__, "The projection type PS_PROJ_PAR is undefined.\n");
     335        psError(__func__, "The projection type PS_PROJ_PAR is undefined.\n");
    320336
    321337    } else if (projection->type == PS_PROJ_GLS) {
    322         psAbort(__func__, "The projection type PS_PROJ_GLG is undefined.\n");
     338        psError(__func__, "The projection type PS_PROJ_GLG is undefined.\n");
    323339    } else {
    324         psAbort(__func__, "Unknown projection type.\n");
     340        psError(__func__, "Unknown projection type.\n");
    325341    }
    326342
     
    391407        } else if (unit == PS_RADIAN) {}
    392408        else {
    393             psAbort(__func__, "Unknown offset unit: 0x%x\n", unit);
     409            psError(__func__, "Unknown offset unit: 0x%x\n", unit);
    394410        }
    395411
    396412        return (tmp);
    397413    }
    398     psAbort(__func__, "Unrecognized offset mode\n");
     414
     415    psError(__func__, "Unrecognized offset mode\n");
    399416    return (NULL);
    400417}
     
    452469            tmpD = offset->d;
    453470        } else {
    454             psAbort(__func__, "Unknown offset unit: 0x%x\n", unit);
     471            psError(__func__, "Unknown offset unit: 0x%x\n", unit);
    455472        }
    456473
     
    465482        return (tmp);
    466483    }
    467     psAbort(__func__, "Unrecognized offset mode\n");
     484
     485    psError(__func__, "Unrecognized offset mode\n");
    468486    return (NULL);
    469487}
  • trunk/psLib/src/astronomy/psAstrometry.c

    r2214 r2221  
    88 *  @author George Gusciora, MHPCC
    99 *
    10  *  @version $Revision: 1.47 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-10-27 20:20:11 $
     10 *  @version $Revision: 1.48 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-10-27 23:31:43 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2323#include "psAstrometry.h"
    2424#include "psMemory.h"
    25 #include "psAbort.h"
    2625#include "psError.h"
    2726#include "psConstants.h"
     
    834833    // generate an error if cell->toTP is not linear.
    835834    if (0 == isProjectionLinear(cell->toTP)) {
    836         psAbort(__func__, "the cell->toTP transfrom is not linear.\n");
     835        psError(__func__, "the cell->toTP transfrom is not linear.\n");
    837836    }
    838837
  • trunk/psLib/src/astronomy/psCoord.c

    r2212 r2221  
    1010*  @author George Gusciora, MHPCC
    1111*
    12 *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-10-27 20:07:17 $
     12*  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-10-27 23:31:43 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2424#include "psCoord.h"
    2525#include "psMemory.h"
    26 #include "psAbort.h"
    2726#include "psTime.h"
    2827#include "psConstants.h"
     
    6968psPlaneTransform* psPlaneTransformAlloc(psS32 n1, psS32 n2)
    7069{
     70    PS_INT_CHECK_NON_NEGATIVE(n1, NULL);
     71    PS_INT_CHECK_NON_NEGATIVE(n2, NULL);
     72
    7173    psPlaneTransform *pt = psAlloc(sizeof(psPlaneTransform));
    7274    pt->x = psDPolynomial2DAlloc(n1, n2, PS_POLYNOMIAL_ORD);
     
    8284{
    8385    PS_PTR_CHECK_NULL(transform, NULL);
     86    PS_PTR_CHECK_NULL(transform->x, NULL);
     87    PS_PTR_CHECK_NULL(transform->y, NULL);
    8488    PS_PTR_CHECK_NULL(coords, NULL);
     89
    8590    if (out == NULL) {
    8691        out = (psPlane* ) psAlloc(sizeof(psPlane));
     
    99104psPlaneDistort* psPlaneDistortAlloc(psS32 n1, psS32 n2, psS32 n3, psS32 n4)
    100105{
     106    PS_INT_CHECK_NON_NEGATIVE(n1, NULL);
     107    PS_INT_CHECK_NON_NEGATIVE(n2, NULL);
     108    PS_INT_CHECK_NON_NEGATIVE(n3, NULL);
     109    PS_INT_CHECK_NON_NEGATIVE(n4, NULL);
     110
    101111    psPlaneDistort *pt = psAlloc(sizeof(psPlaneDistort));
    102112    pt->x = psDPolynomial4DAlloc(n1, n2, n3, n4, PS_POLYNOMIAL_ORD);
     
    118128{
    119129    PS_PTR_CHECK_NULL(transform, NULL);
     130    PS_PTR_CHECK_NULL(transform->x, NULL);
     131    PS_PTR_CHECK_NULL(transform->y, NULL);
    120132    PS_PTR_CHECK_NULL(coords, NULL);
     133
    121134    if (out == NULL) {
    122135        out = (psPlane* ) psAlloc(sizeof(psPlane));
     
    158171    PS_PTR_CHECK_NULL(transform, NULL);
    159172    PS_PTR_CHECK_NULL(coord, NULL);
     173
    160174    double sinY = 0.0;
    161175    double cosY = 0.0;
     
    186200psSphereTransform* psSphereTransformICRSToEcliptic(psTime time)
    187201{
     202    PS_PTR_CHECK_NULL(&time, NULL);
     203
    188204    struct tm *tmTime = psTimeToTM(&time);
    189205    double year = (double)(1900 + tmTime->tm_year);
     
    199215psSphereTransform* psSphereTransformEclipticToICRS(psTime time)
    200216{
     217    PS_PTR_CHECK_NULL(&time, NULL);
     218
    201219    struct tm *tmTime = psTimeToTM(&time);
    202220    double year = (double)(1900 + tmTime->tm_year);
     
    223241XXX: Waiting for the definition of the PS_PROJ_PAR projection.
    224242XXX: Waiting for the definition of the PS_PROJ_GLS projection.
    225 XXX: get rid of the psAborts
    226243 *****************************************************************************/
    227244psPlane* psProject(const psSphere* coord,
     
    261278
    262279    } else if (projection->type == PS_PROJ_PAR) {
    263         psAbort(__func__, "The projection type PS_PROJ_PAR is undefined.\n");
     280        psError(__func__, "The projection type PS_PROJ_PAR is undefined.\n");
    264281
    265282    } else if (projection->type == PS_PROJ_GLS) {
    266         psAbort(__func__, "The projection type PS_PROJ_GLS is undefined.\n");
     283        psError(__func__, "The projection type PS_PROJ_GLS is undefined.\n");
    267284    } else {
    268         psAbort(__func__, "Unknown projection type.\n");
     285        psError(__func__, "Unknown projection type.\n");
    269286    }
    270287
     
    275292XXX: Waiting for the definition of the PS_PROJ_PAR projection.
    276293XXX: Waiting for the definition of the PS_PROJ_GLS projection.
    277 XXX: get rid of the psAborts
    278294 *****************************************************************************/
    279295psSphere* psDeproject(const psPlane* coord,
     
    317333
    318334    } else if (projection->type == PS_PROJ_PAR) {
    319         psAbort(__func__, "The projection type PS_PROJ_PAR is undefined.\n");
     335        psError(__func__, "The projection type PS_PROJ_PAR is undefined.\n");
    320336
    321337    } else if (projection->type == PS_PROJ_GLS) {
    322         psAbort(__func__, "The projection type PS_PROJ_GLG is undefined.\n");
     338        psError(__func__, "The projection type PS_PROJ_GLG is undefined.\n");
    323339    } else {
    324         psAbort(__func__, "Unknown projection type.\n");
     340        psError(__func__, "Unknown projection type.\n");
    325341    }
    326342
     
    391407        } else if (unit == PS_RADIAN) {}
    392408        else {
    393             psAbort(__func__, "Unknown offset unit: 0x%x\n", unit);
     409            psError(__func__, "Unknown offset unit: 0x%x\n", unit);
    394410        }
    395411
    396412        return (tmp);
    397413    }
    398     psAbort(__func__, "Unrecognized offset mode\n");
     414
     415    psError(__func__, "Unrecognized offset mode\n");
    399416    return (NULL);
    400417}
     
    452469            tmpD = offset->d;
    453470        } else {
    454             psAbort(__func__, "Unknown offset unit: 0x%x\n", unit);
     471            psError(__func__, "Unknown offset unit: 0x%x\n", unit);
    455472        }
    456473
     
    465482        return (tmp);
    466483    }
    467     psAbort(__func__, "Unrecognized offset mode\n");
     484
     485    psError(__func__, "Unrecognized offset mode\n");
    468486    return (NULL);
    469487}
  • trunk/psLib/src/collections/psHash.c

    r2204 r2221  
    1111*  @author George Gusciora, MHPCC
    1212*
    13 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2004-10-27 00:57:31 $
     13*  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2004-10-27 23:31:43 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2424#include "psTrace.h"
    2525#include "psError.h"
    26 #include "psAbort.h"
    2726
    2827#include "psCollectionsErrors.h"
     
    250249    // anyway.
    251250    if ((hash < 0) || (hash >= table->nbucket)) {
    252         psAbort(__func__, "Internal hash function out of range (%d)", hash);
     251        psError(__func__, "Internal hash function out of range (%d)", hash);
    253252    }
    254253    // ptr will have the correct hash bucket.
  • trunk/psLib/src/dataManip/psConstants.h

    r2220 r2221  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-10-27 21:55:09 $
     8 *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-10-27 23:31:43 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    103103#define PS_VECTOR_CHECK_TYPE_F32_OR_F64(NAME, RVAL) \
    104104if ((NAME->type.type != PS_TYPE_F32) && (NAME->type.type != PS_TYPE_F64)) { \
    105     psAbort(__func__, "psVector %s: bad type(%d)", #NAME, NAME->type.type); \
     105    psError(__func__, "psVector %s: bad type(%d)", #NAME, NAME->type.type); \
    106106    return(RVAL); \
    107107} \
  • trunk/psLib/src/dataManip/psFunctions.c

    r2218 r2221  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-10-27 21:25:52 $
     9 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-10-27 23:31:43 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232#include "psTrace.h"
    3333#include "psError.h"
    34 #include "psAbort.h"
    3534#include "psLogMsg.h"
    3635#include "psFunctions.h"
     
    145144 Gaussian distribution as well.
    146145 
    147  NOTE: XXX: There is no way to seed the random generator.
     146XXX: There is no way to seed the random generator.
    148147 *****************************************************************************/
    149148psVector* psGaussianDev(float mean, float sigma, psS32 Npts)
     
    167166    }
    168167
    169     // NOTE: Should I free r as well?
     168    // XXX: Should I free r, T as well?  This is a memory leak.
    170169    return(gauss);
    171170}
     
    426425    }
    427426
    428 
    429     if (NULL == myPoly) {
    430         psAbort(__func__, "psPolynomial1DEval(): myPoly is NULL\n");
    431     }
    432 
    433     // NOTE: Do we want to flag this case?
    434     if (myPoly->n == 0) {
    435         return(1.0);
    436     }
    437 
    438     if (NULL == myPoly->coeff) {
    439         psAbort(__func__, "psPolynomial1DEval(): myPoly->coeff is NULL\n");
    440     }
    441 
    442427    for (loop_x = 0; loop_x < myPoly->n; loop_x++) {
    443428        if (myPoly->mask[loop_x] == 0) {
     
    508493        return(p_psChebPolynomial1DEval(x, myPoly));
    509494    } else {
    510         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     495        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    511496    }
    512497    return(0.0);
     
    604589        return(p_psChebPolynomial2DEval(x, y, myPoly));
    605590    } else {
    606         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     591        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    607592    }
    608593    return(0.0);
     
    727712        return(p_psChebPolynomial3DEval(x, y, z, myPoly));
    728713    } else {
    729         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     714        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    730715    }
    731716    return(0.0);
     
    876861        return(p_psChebPolynomial4DEval(w,x,y,z, myPoly));
    877862    } else {
    878         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     863        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    879864    }
    880865    return(0.0);
     
    11851170    double xSum = 1.0;
    11861171
    1187     // NOTE: Do we want to flag this case?
    1188     if (myPoly->n == 0) {
    1189         return(1.0);
    1190     }
    1191 
    11921172    for (loop_x = 0; loop_x < myPoly->n; loop_x++) {
    11931173        if (myPoly->mask[loop_x] == 0) {
     
    12361216        return(p_psDChebPolynomial1DEval(x, myPoly));
    12371217    } else {
    1238         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     1218        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    12391219    }
    12401220    return(0.0);
     
    13301310        return(p_psDChebPolynomial2DEval(x, y, myPoly));
    13311311    } else {
    1332         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     1312        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    13331313    }
    13341314    return(0.0);
     
    14521432        return(p_psDChebPolynomial3DEval(x, y, z, myPoly));
    14531433    } else {
    1454         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     1434        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    14551435    }
    14561436    return(0.0);
     
    16031583        return(p_psDChebPolynomial4DEval(w,x,y,z, myPoly));
    16041584    } else {
    1605         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     1585        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    16061586    }
    16071587    return(0.0);
  • trunk/psLib/src/dataManip/psMinimize.c

    r2219 r2221  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.71 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-27 21:42:21 $
     11 *  @version $Revision: 1.72 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-27 23:31:43 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2424/* INCLUDE FILES                                                             */
    2525/*****************************************************************************/
     26#include <stdio.h>
     27#include <float.h>
     28#include <math.h>
     29
    2630#include "psMinimize.h"
    2731/*****************************************************************************/
     
    12131217        psFree(tmpc);
    12141218        psFree(tmpn);
    1215         psAbort(__func__, "(1) Could not bracket minimum.");
     1219        psError(__func__, "(1) Could not bracket minimum.");
    12161220    }
    12171221
  • trunk/psLib/src/dataManip/psMinimize.h

    r2206 r2221  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-10-27 01:15:47 $
     10 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-10-27 23:31:43 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1818#define PS_MINIMIZE_H
    1919
    20 #include <stdio.h>
    21 #include <float.h>
    22 #include <math.h>
    23 
    24 #include "psMemory.h"
    25 #include "psVector.h"
    26 #include "psArray.h"
    27 #include "psImage.h"
    28 #include "psMatrix.h"
    29 #include "psFunctions.h"
    30 #include "psStats.h"
    31 #include "psTrace.h"
    32 #include "psLogMsg.h"
    33 #include "psError.h"
    34 #include "psAbort.h"
    35 #include "psConstants.h"
    36 
    37 
    3820/** \file psMinimize.h
    3921 *  \brief minimization operations
     
    4325 *  \{
    4426 */
     27
     28#include "psVector.h"
     29#include "psMemory.h"
     30#include "psArray.h"
     31#include "psImage.h"
     32#include "psMatrix.h"
     33#include "psFunctions.h"
     34#include "psStats.h"
     35#include "psTrace.h"
     36#include "psError.h"
     37#include "psConstants.h"
    4538
    4639typedef struct
  • trunk/psLib/src/dataManip/psStats.c

    r2220 r2221  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.75 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-27 21:55:09 $
     11 *  @version $Revision: 1.76 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-27 23:31:43 $
    1313n *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3030#include "psTrace.h"
    3131#include "psError.h"
    32 #include "psAbort.h"
    3332#include "psStats.h"
    3433#include "psMinimize.h"
     
    743742    // Endure that stats->clipIter is within the proper range.
    744743    if (!((PS_CLIPPED_NUM_ITER_LB <= stats->clipIter) && (stats->clipIter <= PS_CLIPPED_NUM_ITER_UB))) {
    745         psAbort(__func__, "Unallowed value for clipIter (%d).\n", stats->clipIter);
     744        psError(__func__, "Unallowed value for clipIter (%d).\n", stats->clipIter);
    746745    }
    747746    // Endure that stats->clipSigma is within the proper range.
    748747    if (!((PS_CLIPPED_SIGMA_LB <= stats->clipSigma) && (stats->clipSigma <= PS_CLIPPED_SIGMA_UB))) {
    749         psAbort(__func__, "Unallowed value for clipSigma (%f).\n", stats->clipSigma);
     748        psError(__func__, "Unallowed value for clipSigma (%f).\n", stats->clipSigma);
    750749    }
    751750    // We allocate a temporary mask vector since during the iterative
     
    763762    }
    764763    // 1. Compute the sample median.
    765     // NOTE: This seems odd.  Verify with IfA that we want to calculate the
     764    // XXX: This seems odd.  Verify with IfA that we want to calculate the
    766765    // median here, not the mean.
    767766    p_psVectorSampleMedian(myVector, maskVector, maskVal, stats);
     
    14531452    // Calculate the bounds for each bin.
    14541453    binSize = (upper - lower) / (float)n;
    1455     // NOTE: Is the following necessary? It prevents the max data point
     1454    // XXX: Is the following necessary? It prevents the max data point
    14561455    // from being in a non-existant bin.
    14571456    binSize += FLT_EPSILON;
     
    15461545    PS_VECTOR_CHECK_TYPE(out->bounds, PS_TYPE_F32, NULL);
    15471546    PS_VECTOR_CHECK_TYPE(out->nums, PS_TYPE_U32, NULL);
     1547    PS_INT_CHECK_NON_NEGATIVE(out->nums->n, NULL);
    15481548    PS_VECTOR_CHECK_NULL(in, NULL);
    15491549    if (mask != NULL) {
     
    15671567    }
    15681568
    1569     // NOTE: determine the correct action for a variety of other cases:
    1570     // in vector has 0 elements, and histogram structure has zero bins.
    15711569
    15721570    numBins = out->nums->n;
     
    15891587                    binNum = (psS32)((inF32->data.F32[i] - out->bounds->data.F32[0]) / binSize);
    15901588
    1591                     // NOTE: This next if-statement really shouldn't be necessary.
    1592                     // However, do to numerical lack of precision, we occasionally
     1589                    // XXX: This if-statement really shouldn't be necessary.
     1590                    // However, due to numerical lack of precision, we occasionally
    15931591                    // produce a binNum outside the range of bins.
    15941592                    if (binNum >= out->nums->n) {
     
    16571655        // do nothing
    16581656    } else {
    1659         psAbort(__func__, "unsupported vector type 0x%x\n", in->type.type);
     1657        psError(__func__, "unsupported vector type 0x%x\n", in->type.type);
    16601658    }
    16611659    return (tmp);
     
    16741672Returns
    16751673    The stats structure.
    1676  
    1677 NOTE: The current strategy is to implement everything assuming that all
    1678 input data is of type PS_TYPE_F32.  Once the basic code is in place, we will
    1679 macro-ize everything and add PS_TYPE_U16 and PS_TYPE_F64.
    16801674 *****************************************************************************/
    16811675psStats* psVectorStats(psStats* stats,
     
    17121706    }
    17131707    // ************************************************************************
    1714     // NOTE: The Stdev calculation requires the mean.  Should we assume the
     1708    // XXX: The Stdev calculation requires the mean.  Should we assume the
    17151709    // mean has already been calculated? Or should we always calculate it?
    17161710    if (stats->options & PS_STAT_SAMPLE_STDEV) {
  • trunk/psLib/src/math/psConstants.h

    r2220 r2221  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-10-27 21:55:09 $
     8 *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-10-27 23:31:43 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    103103#define PS_VECTOR_CHECK_TYPE_F32_OR_F64(NAME, RVAL) \
    104104if ((NAME->type.type != PS_TYPE_F32) && (NAME->type.type != PS_TYPE_F64)) { \
    105     psAbort(__func__, "psVector %s: bad type(%d)", #NAME, NAME->type.type); \
     105    psError(__func__, "psVector %s: bad type(%d)", #NAME, NAME->type.type); \
    106106    return(RVAL); \
    107107} \
  • trunk/psLib/src/math/psMinimize.c

    r2219 r2221  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.71 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-27 21:42:21 $
     11 *  @version $Revision: 1.72 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-27 23:31:43 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2424/* INCLUDE FILES                                                             */
    2525/*****************************************************************************/
     26#include <stdio.h>
     27#include <float.h>
     28#include <math.h>
     29
    2630#include "psMinimize.h"
    2731/*****************************************************************************/
     
    12131217        psFree(tmpc);
    12141218        psFree(tmpn);
    1215         psAbort(__func__, "(1) Could not bracket minimum.");
     1219        psError(__func__, "(1) Could not bracket minimum.");
    12161220    }
    12171221
  • trunk/psLib/src/math/psMinimize.h

    r2206 r2221  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-10-27 01:15:47 $
     10 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-10-27 23:31:43 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1818#define PS_MINIMIZE_H
    1919
    20 #include <stdio.h>
    21 #include <float.h>
    22 #include <math.h>
    23 
    24 #include "psMemory.h"
    25 #include "psVector.h"
    26 #include "psArray.h"
    27 #include "psImage.h"
    28 #include "psMatrix.h"
    29 #include "psFunctions.h"
    30 #include "psStats.h"
    31 #include "psTrace.h"
    32 #include "psLogMsg.h"
    33 #include "psError.h"
    34 #include "psAbort.h"
    35 #include "psConstants.h"
    36 
    37 
    3820/** \file psMinimize.h
    3921 *  \brief minimization operations
     
    4325 *  \{
    4426 */
     27
     28#include "psVector.h"
     29#include "psMemory.h"
     30#include "psArray.h"
     31#include "psImage.h"
     32#include "psMatrix.h"
     33#include "psFunctions.h"
     34#include "psStats.h"
     35#include "psTrace.h"
     36#include "psError.h"
     37#include "psConstants.h"
    4538
    4639typedef struct
  • trunk/psLib/src/math/psPolynomial.c

    r2218 r2221  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-10-27 21:25:52 $
     9 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-10-27 23:31:43 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232#include "psTrace.h"
    3333#include "psError.h"
    34 #include "psAbort.h"
    3534#include "psLogMsg.h"
    3635#include "psFunctions.h"
     
    145144 Gaussian distribution as well.
    146145 
    147  NOTE: XXX: There is no way to seed the random generator.
     146XXX: There is no way to seed the random generator.
    148147 *****************************************************************************/
    149148psVector* psGaussianDev(float mean, float sigma, psS32 Npts)
     
    167166    }
    168167
    169     // NOTE: Should I free r as well?
     168    // XXX: Should I free r, T as well?  This is a memory leak.
    170169    return(gauss);
    171170}
     
    426425    }
    427426
    428 
    429     if (NULL == myPoly) {
    430         psAbort(__func__, "psPolynomial1DEval(): myPoly is NULL\n");
    431     }
    432 
    433     // NOTE: Do we want to flag this case?
    434     if (myPoly->n == 0) {
    435         return(1.0);
    436     }
    437 
    438     if (NULL == myPoly->coeff) {
    439         psAbort(__func__, "psPolynomial1DEval(): myPoly->coeff is NULL\n");
    440     }
    441 
    442427    for (loop_x = 0; loop_x < myPoly->n; loop_x++) {
    443428        if (myPoly->mask[loop_x] == 0) {
     
    508493        return(p_psChebPolynomial1DEval(x, myPoly));
    509494    } else {
    510         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     495        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    511496    }
    512497    return(0.0);
     
    604589        return(p_psChebPolynomial2DEval(x, y, myPoly));
    605590    } else {
    606         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     591        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    607592    }
    608593    return(0.0);
     
    727712        return(p_psChebPolynomial3DEval(x, y, z, myPoly));
    728713    } else {
    729         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     714        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    730715    }
    731716    return(0.0);
     
    876861        return(p_psChebPolynomial4DEval(w,x,y,z, myPoly));
    877862    } else {
    878         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     863        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    879864    }
    880865    return(0.0);
     
    11851170    double xSum = 1.0;
    11861171
    1187     // NOTE: Do we want to flag this case?
    1188     if (myPoly->n == 0) {
    1189         return(1.0);
    1190     }
    1191 
    11921172    for (loop_x = 0; loop_x < myPoly->n; loop_x++) {
    11931173        if (myPoly->mask[loop_x] == 0) {
     
    12361216        return(p_psDChebPolynomial1DEval(x, myPoly));
    12371217    } else {
    1238         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     1218        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    12391219    }
    12401220    return(0.0);
     
    13301310        return(p_psDChebPolynomial2DEval(x, y, myPoly));
    13311311    } else {
    1332         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     1312        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    13331313    }
    13341314    return(0.0);
     
    14521432        return(p_psDChebPolynomial3DEval(x, y, z, myPoly));
    14531433    } else {
    1454         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     1434        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    14551435    }
    14561436    return(0.0);
     
    16031583        return(p_psDChebPolynomial4DEval(w,x,y,z, myPoly));
    16041584    } else {
    1605         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     1585        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    16061586    }
    16071587    return(0.0);
  • trunk/psLib/src/math/psSpline.c

    r2218 r2221  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-10-27 21:25:52 $
     9 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-10-27 23:31:43 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232#include "psTrace.h"
    3333#include "psError.h"
    34 #include "psAbort.h"
    3534#include "psLogMsg.h"
    3635#include "psFunctions.h"
     
    145144 Gaussian distribution as well.
    146145 
    147  NOTE: XXX: There is no way to seed the random generator.
     146XXX: There is no way to seed the random generator.
    148147 *****************************************************************************/
    149148psVector* psGaussianDev(float mean, float sigma, psS32 Npts)
     
    167166    }
    168167
    169     // NOTE: Should I free r as well?
     168    // XXX: Should I free r, T as well?  This is a memory leak.
    170169    return(gauss);
    171170}
     
    426425    }
    427426
    428 
    429     if (NULL == myPoly) {
    430         psAbort(__func__, "psPolynomial1DEval(): myPoly is NULL\n");
    431     }
    432 
    433     // NOTE: Do we want to flag this case?
    434     if (myPoly->n == 0) {
    435         return(1.0);
    436     }
    437 
    438     if (NULL == myPoly->coeff) {
    439         psAbort(__func__, "psPolynomial1DEval(): myPoly->coeff is NULL\n");
    440     }
    441 
    442427    for (loop_x = 0; loop_x < myPoly->n; loop_x++) {
    443428        if (myPoly->mask[loop_x] == 0) {
     
    508493        return(p_psChebPolynomial1DEval(x, myPoly));
    509494    } else {
    510         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     495        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    511496    }
    512497    return(0.0);
     
    604589        return(p_psChebPolynomial2DEval(x, y, myPoly));
    605590    } else {
    606         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     591        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    607592    }
    608593    return(0.0);
     
    727712        return(p_psChebPolynomial3DEval(x, y, z, myPoly));
    728713    } else {
    729         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     714        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    730715    }
    731716    return(0.0);
     
    876861        return(p_psChebPolynomial4DEval(w,x,y,z, myPoly));
    877862    } else {
    878         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     863        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    879864    }
    880865    return(0.0);
     
    11851170    double xSum = 1.0;
    11861171
    1187     // NOTE: Do we want to flag this case?
    1188     if (myPoly->n == 0) {
    1189         return(1.0);
    1190     }
    1191 
    11921172    for (loop_x = 0; loop_x < myPoly->n; loop_x++) {
    11931173        if (myPoly->mask[loop_x] == 0) {
     
    12361216        return(p_psDChebPolynomial1DEval(x, myPoly));
    12371217    } else {
    1238         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     1218        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    12391219    }
    12401220    return(0.0);
     
    13301310        return(p_psDChebPolynomial2DEval(x, y, myPoly));
    13311311    } else {
    1332         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     1312        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    13331313    }
    13341314    return(0.0);
     
    14521432        return(p_psDChebPolynomial3DEval(x, y, z, myPoly));
    14531433    } else {
    1454         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     1434        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    14551435    }
    14561436    return(0.0);
     
    16031583        return(p_psDChebPolynomial4DEval(w,x,y,z, myPoly));
    16041584    } else {
    1605         psAbort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
     1585        psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);
    16061586    }
    16071587    return(0.0);
  • trunk/psLib/src/math/psStats.c

    r2220 r2221  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.75 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-27 21:55:09 $
     11 *  @version $Revision: 1.76 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-27 23:31:43 $
    1313n *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3030#include "psTrace.h"
    3131#include "psError.h"
    32 #include "psAbort.h"
    3332#include "psStats.h"
    3433#include "psMinimize.h"
     
    743742    // Endure that stats->clipIter is within the proper range.
    744743    if (!((PS_CLIPPED_NUM_ITER_LB <= stats->clipIter) && (stats->clipIter <= PS_CLIPPED_NUM_ITER_UB))) {
    745         psAbort(__func__, "Unallowed value for clipIter (%d).\n", stats->clipIter);
     744        psError(__func__, "Unallowed value for clipIter (%d).\n", stats->clipIter);
    746745    }
    747746    // Endure that stats->clipSigma is within the proper range.
    748747    if (!((PS_CLIPPED_SIGMA_LB <= stats->clipSigma) && (stats->clipSigma <= PS_CLIPPED_SIGMA_UB))) {
    749         psAbort(__func__, "Unallowed value for clipSigma (%f).\n", stats->clipSigma);
     748        psError(__func__, "Unallowed value for clipSigma (%f).\n", stats->clipSigma);
    750749    }
    751750    // We allocate a temporary mask vector since during the iterative
     
    763762    }
    764763    // 1. Compute the sample median.
    765     // NOTE: This seems odd.  Verify with IfA that we want to calculate the
     764    // XXX: This seems odd.  Verify with IfA that we want to calculate the
    766765    // median here, not the mean.
    767766    p_psVectorSampleMedian(myVector, maskVector, maskVal, stats);
     
    14531452    // Calculate the bounds for each bin.
    14541453    binSize = (upper - lower) / (float)n;
    1455     // NOTE: Is the following necessary? It prevents the max data point
     1454    // XXX: Is the following necessary? It prevents the max data point
    14561455    // from being in a non-existant bin.
    14571456    binSize += FLT_EPSILON;
     
    15461545    PS_VECTOR_CHECK_TYPE(out->bounds, PS_TYPE_F32, NULL);
    15471546    PS_VECTOR_CHECK_TYPE(out->nums, PS_TYPE_U32, NULL);
     1547    PS_INT_CHECK_NON_NEGATIVE(out->nums->n, NULL);
    15481548    PS_VECTOR_CHECK_NULL(in, NULL);
    15491549    if (mask != NULL) {
     
    15671567    }
    15681568
    1569     // NOTE: determine the correct action for a variety of other cases:
    1570     // in vector has 0 elements, and histogram structure has zero bins.
    15711569
    15721570    numBins = out->nums->n;
     
    15891587                    binNum = (psS32)((inF32->data.F32[i] - out->bounds->data.F32[0]) / binSize);
    15901588
    1591                     // NOTE: This next if-statement really shouldn't be necessary.
    1592                     // However, do to numerical lack of precision, we occasionally
     1589                    // XXX: This if-statement really shouldn't be necessary.
     1590                    // However, due to numerical lack of precision, we occasionally
    15931591                    // produce a binNum outside the range of bins.
    15941592                    if (binNum >= out->nums->n) {
     
    16571655        // do nothing
    16581656    } else {
    1659         psAbort(__func__, "unsupported vector type 0x%x\n", in->type.type);
     1657        psError(__func__, "unsupported vector type 0x%x\n", in->type.type);
    16601658    }
    16611659    return (tmp);
     
    16741672Returns
    16751673    The stats structure.
    1676  
    1677 NOTE: The current strategy is to implement everything assuming that all
    1678 input data is of type PS_TYPE_F32.  Once the basic code is in place, we will
    1679 macro-ize everything and add PS_TYPE_U16 and PS_TYPE_F64.
    16801674 *****************************************************************************/
    16811675psStats* psVectorStats(psStats* stats,
     
    17121706    }
    17131707    // ************************************************************************
    1714     // NOTE: The Stdev calculation requires the mean.  Should we assume the
     1708    // XXX: The Stdev calculation requires the mean.  Should we assume the
    17151709    // mean has already been calculated? Or should we always calculate it?
    17161710    if (stats->options & PS_STAT_SAMPLE_STDEV) {
  • trunk/psLib/src/sys/psTrace.c

    r2204 r2221  
    99 *  @author George Gusciora, MHPCC
    1010 *
    11  *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-27 00:57:31 $
     11 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-27 23:31:44 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7171    comp->level = level;
    7272    comp->n = 0;
     73    comp->p_psSpecified = false;
    7374    comp->subcomp = NULL;
    7475    return comp;
     
    267268                   level,
    268269                   compName);
     270
    269271        if (comp[0] != '.') {
    270272            psFree(compName);
  • trunk/psLib/src/sys/psTrace.h

    r2204 r2221  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-27 00:57:31 $
     11 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-27 23:31:44 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1818
    1919#define PS_UNKNOWN_TRACE_LEVEL -9999   // we don't know this name's level
    20 #define PS_DEFAULT_TRACE_LEVEL -1
     20#define PS_DEFAULT_TRACE_LEVEL 0
    2121
    2222/** \addtogroup LogTrace
     
    5151        const char *name;           // last part of name of component
    5252        psS32 level;                  // trace level for this component
     53        bool p_psSpecified;
    5354        psS32 n;                      // number of subcomponents
    5455        struct p_psComponent* *subcomp;     // next level of subcomponents
  • trunk/psLib/src/sysUtils/psTrace.c

    r2204 r2221  
    99 *  @author George Gusciora, MHPCC
    1010 *
    11  *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-27 00:57:31 $
     11 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-27 23:31:44 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7171    comp->level = level;
    7272    comp->n = 0;
     73    comp->p_psSpecified = false;
    7374    comp->subcomp = NULL;
    7475    return comp;
     
    267268                   level,
    268269                   compName);
     270
    269271        if (comp[0] != '.') {
    270272            psFree(compName);
  • trunk/psLib/src/sysUtils/psTrace.h

    r2204 r2221  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-27 00:57:31 $
     11 *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-27 23:31:44 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1818
    1919#define PS_UNKNOWN_TRACE_LEVEL -9999   // we don't know this name's level
    20 #define PS_DEFAULT_TRACE_LEVEL -1
     20#define PS_DEFAULT_TRACE_LEVEL 0
    2121
    2222/** \addtogroup LogTrace
     
    5151        const char *name;           // last part of name of component
    5252        psS32 level;                  // trace level for this component
     53        bool p_psSpecified;
    5354        psS32 n;                      // number of subcomponents
    5455        struct p_psComponent* *subcomp;     // next level of subcomponents
  • trunk/psLib/src/types/psHash.c

    r2204 r2221  
    1111*  @author George Gusciora, MHPCC
    1212*
    13 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2004-10-27 00:57:31 $
     13*  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2004-10-27 23:31:43 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2424#include "psTrace.h"
    2525#include "psError.h"
    26 #include "psAbort.h"
    2726
    2827#include "psCollectionsErrors.h"
     
    250249    // anyway.
    251250    if ((hash < 0) || (hash >= table->nbucket)) {
    252         psAbort(__func__, "Internal hash function out of range (%d)", hash);
     251        psError(__func__, "Internal hash function out of range (%d)", hash);
    253252    }
    254253    // ptr will have the correct hash bucket.
Note: See TracChangeset for help on using the changeset viewer.