Changeset 2221
- Timestamp:
- Oct 27, 2004, 1:31:44 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 20 edited
-
astro/psCoord.c (modified) (16 diffs)
-
astronomy/psAstrometry.c (modified) (3 diffs)
-
astronomy/psCoord.c (modified) (16 diffs)
-
collections/psHash.c (modified) (3 diffs)
-
dataManip/psConstants.h (modified) (2 diffs)
-
dataManip/psFunctions.c (modified) (14 diffs)
-
dataManip/psMinimize.c (modified) (3 diffs)
-
dataManip/psMinimize.h (modified) (3 diffs)
-
dataManip/psStats.c (modified) (11 diffs)
-
math/psConstants.h (modified) (2 diffs)
-
math/psMinimize.c (modified) (3 diffs)
-
math/psMinimize.h (modified) (3 diffs)
-
math/psPolynomial.c (modified) (14 diffs)
-
math/psSpline.c (modified) (14 diffs)
-
math/psStats.c (modified) (11 diffs)
-
sys/psTrace.c (modified) (3 diffs)
-
sys/psTrace.h (modified) (3 diffs)
-
sysUtils/psTrace.c (modified) (3 diffs)
-
sysUtils/psTrace.h (modified) (3 diffs)
-
types/psHash.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r2212 r2221 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-10-27 2 0:07:17$12 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-10-27 23:31:43 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 24 24 #include "psCoord.h" 25 25 #include "psMemory.h" 26 #include "psAbort.h"27 26 #include "psTime.h" 28 27 #include "psConstants.h" … … 69 68 psPlaneTransform* psPlaneTransformAlloc(psS32 n1, psS32 n2) 70 69 { 70 PS_INT_CHECK_NON_NEGATIVE(n1, NULL); 71 PS_INT_CHECK_NON_NEGATIVE(n2, NULL); 72 71 73 psPlaneTransform *pt = psAlloc(sizeof(psPlaneTransform)); 72 74 pt->x = psDPolynomial2DAlloc(n1, n2, PS_POLYNOMIAL_ORD); … … 82 84 { 83 85 PS_PTR_CHECK_NULL(transform, NULL); 86 PS_PTR_CHECK_NULL(transform->x, NULL); 87 PS_PTR_CHECK_NULL(transform->y, NULL); 84 88 PS_PTR_CHECK_NULL(coords, NULL); 89 85 90 if (out == NULL) { 86 91 out = (psPlane* ) psAlloc(sizeof(psPlane)); … … 99 104 psPlaneDistort* psPlaneDistortAlloc(psS32 n1, psS32 n2, psS32 n3, psS32 n4) 100 105 { 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 101 111 psPlaneDistort *pt = psAlloc(sizeof(psPlaneDistort)); 102 112 pt->x = psDPolynomial4DAlloc(n1, n2, n3, n4, PS_POLYNOMIAL_ORD); … … 118 128 { 119 129 PS_PTR_CHECK_NULL(transform, NULL); 130 PS_PTR_CHECK_NULL(transform->x, NULL); 131 PS_PTR_CHECK_NULL(transform->y, NULL); 120 132 PS_PTR_CHECK_NULL(coords, NULL); 133 121 134 if (out == NULL) { 122 135 out = (psPlane* ) psAlloc(sizeof(psPlane)); … … 158 171 PS_PTR_CHECK_NULL(transform, NULL); 159 172 PS_PTR_CHECK_NULL(coord, NULL); 173 160 174 double sinY = 0.0; 161 175 double cosY = 0.0; … … 186 200 psSphereTransform* psSphereTransformICRSToEcliptic(psTime time) 187 201 { 202 PS_PTR_CHECK_NULL(&time, NULL); 203 188 204 struct tm *tmTime = psTimeToTM(&time); 189 205 double year = (double)(1900 + tmTime->tm_year); … … 199 215 psSphereTransform* psSphereTransformEclipticToICRS(psTime time) 200 216 { 217 PS_PTR_CHECK_NULL(&time, NULL); 218 201 219 struct tm *tmTime = psTimeToTM(&time); 202 220 double year = (double)(1900 + tmTime->tm_year); … … 223 241 XXX: Waiting for the definition of the PS_PROJ_PAR projection. 224 242 XXX: Waiting for the definition of the PS_PROJ_GLS projection. 225 XXX: get rid of the psAborts226 243 *****************************************************************************/ 227 244 psPlane* psProject(const psSphere* coord, … … 261 278 262 279 } else if (projection->type == PS_PROJ_PAR) { 263 ps Abort(__func__, "The projection type PS_PROJ_PAR is undefined.\n");280 psError(__func__, "The projection type PS_PROJ_PAR is undefined.\n"); 264 281 265 282 } else if (projection->type == PS_PROJ_GLS) { 266 ps Abort(__func__, "The projection type PS_PROJ_GLS is undefined.\n");283 psError(__func__, "The projection type PS_PROJ_GLS is undefined.\n"); 267 284 } else { 268 ps Abort(__func__, "Unknown projection type.\n");285 psError(__func__, "Unknown projection type.\n"); 269 286 } 270 287 … … 275 292 XXX: Waiting for the definition of the PS_PROJ_PAR projection. 276 293 XXX: Waiting for the definition of the PS_PROJ_GLS projection. 277 XXX: get rid of the psAborts278 294 *****************************************************************************/ 279 295 psSphere* psDeproject(const psPlane* coord, … … 317 333 318 334 } else if (projection->type == PS_PROJ_PAR) { 319 ps Abort(__func__, "The projection type PS_PROJ_PAR is undefined.\n");335 psError(__func__, "The projection type PS_PROJ_PAR is undefined.\n"); 320 336 321 337 } else if (projection->type == PS_PROJ_GLS) { 322 ps Abort(__func__, "The projection type PS_PROJ_GLG is undefined.\n");338 psError(__func__, "The projection type PS_PROJ_GLG is undefined.\n"); 323 339 } else { 324 ps Abort(__func__, "Unknown projection type.\n");340 psError(__func__, "Unknown projection type.\n"); 325 341 } 326 342 … … 391 407 } else if (unit == PS_RADIAN) {} 392 408 else { 393 ps Abort(__func__, "Unknown offset unit: 0x%x\n", unit);409 psError(__func__, "Unknown offset unit: 0x%x\n", unit); 394 410 } 395 411 396 412 return (tmp); 397 413 } 398 psAbort(__func__, "Unrecognized offset mode\n"); 414 415 psError(__func__, "Unrecognized offset mode\n"); 399 416 return (NULL); 400 417 } … … 452 469 tmpD = offset->d; 453 470 } else { 454 ps Abort(__func__, "Unknown offset unit: 0x%x\n", unit);471 psError(__func__, "Unknown offset unit: 0x%x\n", unit); 455 472 } 456 473 … … 465 482 return (tmp); 466 483 } 467 psAbort(__func__, "Unrecognized offset mode\n"); 484 485 psError(__func__, "Unrecognized offset mode\n"); 468 486 return (NULL); 469 487 } -
trunk/psLib/src/astronomy/psAstrometry.c
r2214 r2221 8 8 * @author George Gusciora, MHPCC 9 9 * 10 * @version $Revision: 1.4 7$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-10-27 2 0:20:11$10 * @version $Revision: 1.48 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-10-27 23:31:43 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 23 23 #include "psAstrometry.h" 24 24 #include "psMemory.h" 25 #include "psAbort.h"26 25 #include "psError.h" 27 26 #include "psConstants.h" … … 834 833 // generate an error if cell->toTP is not linear. 835 834 if (0 == isProjectionLinear(cell->toTP)) { 836 ps Abort(__func__, "the cell->toTP transfrom is not linear.\n");835 psError(__func__, "the cell->toTP transfrom is not linear.\n"); 837 836 } 838 837 -
trunk/psLib/src/astronomy/psCoord.c
r2212 r2221 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-10-27 2 0:07:17$12 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-10-27 23:31:43 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 24 24 #include "psCoord.h" 25 25 #include "psMemory.h" 26 #include "psAbort.h"27 26 #include "psTime.h" 28 27 #include "psConstants.h" … … 69 68 psPlaneTransform* psPlaneTransformAlloc(psS32 n1, psS32 n2) 70 69 { 70 PS_INT_CHECK_NON_NEGATIVE(n1, NULL); 71 PS_INT_CHECK_NON_NEGATIVE(n2, NULL); 72 71 73 psPlaneTransform *pt = psAlloc(sizeof(psPlaneTransform)); 72 74 pt->x = psDPolynomial2DAlloc(n1, n2, PS_POLYNOMIAL_ORD); … … 82 84 { 83 85 PS_PTR_CHECK_NULL(transform, NULL); 86 PS_PTR_CHECK_NULL(transform->x, NULL); 87 PS_PTR_CHECK_NULL(transform->y, NULL); 84 88 PS_PTR_CHECK_NULL(coords, NULL); 89 85 90 if (out == NULL) { 86 91 out = (psPlane* ) psAlloc(sizeof(psPlane)); … … 99 104 psPlaneDistort* psPlaneDistortAlloc(psS32 n1, psS32 n2, psS32 n3, psS32 n4) 100 105 { 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 101 111 psPlaneDistort *pt = psAlloc(sizeof(psPlaneDistort)); 102 112 pt->x = psDPolynomial4DAlloc(n1, n2, n3, n4, PS_POLYNOMIAL_ORD); … … 118 128 { 119 129 PS_PTR_CHECK_NULL(transform, NULL); 130 PS_PTR_CHECK_NULL(transform->x, NULL); 131 PS_PTR_CHECK_NULL(transform->y, NULL); 120 132 PS_PTR_CHECK_NULL(coords, NULL); 133 121 134 if (out == NULL) { 122 135 out = (psPlane* ) psAlloc(sizeof(psPlane)); … … 158 171 PS_PTR_CHECK_NULL(transform, NULL); 159 172 PS_PTR_CHECK_NULL(coord, NULL); 173 160 174 double sinY = 0.0; 161 175 double cosY = 0.0; … … 186 200 psSphereTransform* psSphereTransformICRSToEcliptic(psTime time) 187 201 { 202 PS_PTR_CHECK_NULL(&time, NULL); 203 188 204 struct tm *tmTime = psTimeToTM(&time); 189 205 double year = (double)(1900 + tmTime->tm_year); … … 199 215 psSphereTransform* psSphereTransformEclipticToICRS(psTime time) 200 216 { 217 PS_PTR_CHECK_NULL(&time, NULL); 218 201 219 struct tm *tmTime = psTimeToTM(&time); 202 220 double year = (double)(1900 + tmTime->tm_year); … … 223 241 XXX: Waiting for the definition of the PS_PROJ_PAR projection. 224 242 XXX: Waiting for the definition of the PS_PROJ_GLS projection. 225 XXX: get rid of the psAborts226 243 *****************************************************************************/ 227 244 psPlane* psProject(const psSphere* coord, … … 261 278 262 279 } else if (projection->type == PS_PROJ_PAR) { 263 ps Abort(__func__, "The projection type PS_PROJ_PAR is undefined.\n");280 psError(__func__, "The projection type PS_PROJ_PAR is undefined.\n"); 264 281 265 282 } else if (projection->type == PS_PROJ_GLS) { 266 ps Abort(__func__, "The projection type PS_PROJ_GLS is undefined.\n");283 psError(__func__, "The projection type PS_PROJ_GLS is undefined.\n"); 267 284 } else { 268 ps Abort(__func__, "Unknown projection type.\n");285 psError(__func__, "Unknown projection type.\n"); 269 286 } 270 287 … … 275 292 XXX: Waiting for the definition of the PS_PROJ_PAR projection. 276 293 XXX: Waiting for the definition of the PS_PROJ_GLS projection. 277 XXX: get rid of the psAborts278 294 *****************************************************************************/ 279 295 psSphere* psDeproject(const psPlane* coord, … … 317 333 318 334 } else if (projection->type == PS_PROJ_PAR) { 319 ps Abort(__func__, "The projection type PS_PROJ_PAR is undefined.\n");335 psError(__func__, "The projection type PS_PROJ_PAR is undefined.\n"); 320 336 321 337 } else if (projection->type == PS_PROJ_GLS) { 322 ps Abort(__func__, "The projection type PS_PROJ_GLG is undefined.\n");338 psError(__func__, "The projection type PS_PROJ_GLG is undefined.\n"); 323 339 } else { 324 ps Abort(__func__, "Unknown projection type.\n");340 psError(__func__, "Unknown projection type.\n"); 325 341 } 326 342 … … 391 407 } else if (unit == PS_RADIAN) {} 392 408 else { 393 ps Abort(__func__, "Unknown offset unit: 0x%x\n", unit);409 psError(__func__, "Unknown offset unit: 0x%x\n", unit); 394 410 } 395 411 396 412 return (tmp); 397 413 } 398 psAbort(__func__, "Unrecognized offset mode\n"); 414 415 psError(__func__, "Unrecognized offset mode\n"); 399 416 return (NULL); 400 417 } … … 452 469 tmpD = offset->d; 453 470 } else { 454 ps Abort(__func__, "Unknown offset unit: 0x%x\n", unit);471 psError(__func__, "Unknown offset unit: 0x%x\n", unit); 455 472 } 456 473 … … 465 482 return (tmp); 466 483 } 467 psAbort(__func__, "Unrecognized offset mode\n"); 484 485 psError(__func__, "Unrecognized offset mode\n"); 468 486 return (NULL); 469 487 } -
trunk/psLib/src/collections/psHash.c
r2204 r2221 11 11 * @author George Gusciora, MHPCC 12 12 * 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 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 24 24 #include "psTrace.h" 25 25 #include "psError.h" 26 #include "psAbort.h"27 26 28 27 #include "psCollectionsErrors.h" … … 250 249 // anyway. 251 250 if ((hash < 0) || (hash >= table->nbucket)) { 252 ps Abort(__func__, "Internal hash function out of range (%d)", hash);251 psError(__func__, "Internal hash function out of range (%d)", hash); 253 252 } 254 253 // ptr will have the correct hash bucket. -
trunk/psLib/src/dataManip/psConstants.h
r2220 r2221 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-10-27 2 1:55:09$8 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-10-27 23:31:43 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 103 103 #define PS_VECTOR_CHECK_TYPE_F32_OR_F64(NAME, RVAL) \ 104 104 if ((NAME->type.type != PS_TYPE_F32) && (NAME->type.type != PS_TYPE_F64)) { \ 105 ps Abort(__func__, "psVector %s: bad type(%d)", #NAME, NAME->type.type); \105 psError(__func__, "psVector %s: bad type(%d)", #NAME, NAME->type.type); \ 106 106 return(RVAL); \ 107 107 } \ -
trunk/psLib/src/dataManip/psFunctions.c
r2218 r2221 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.5 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-10-27 2 1:25:52$9 * @version $Revision: 1.57 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-10-27 23:31:43 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 32 32 #include "psTrace.h" 33 33 #include "psError.h" 34 #include "psAbort.h"35 34 #include "psLogMsg.h" 36 35 #include "psFunctions.h" … … 145 144 Gaussian distribution as well. 146 145 147 NOTE:XXX: There is no way to seed the random generator.146 XXX: There is no way to seed the random generator. 148 147 *****************************************************************************/ 149 148 psVector* psGaussianDev(float mean, float sigma, psS32 Npts) … … 167 166 } 168 167 169 // NOTE: Should I free r as well?168 // XXX: Should I free r, T as well? This is a memory leak. 170 169 return(gauss); 171 170 } … … 426 425 } 427 426 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 442 427 for (loop_x = 0; loop_x < myPoly->n; loop_x++) { 443 428 if (myPoly->mask[loop_x] == 0) { … … 508 493 return(p_psChebPolynomial1DEval(x, myPoly)); 509 494 } else { 510 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);495 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 511 496 } 512 497 return(0.0); … … 604 589 return(p_psChebPolynomial2DEval(x, y, myPoly)); 605 590 } else { 606 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);591 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 607 592 } 608 593 return(0.0); … … 727 712 return(p_psChebPolynomial3DEval(x, y, z, myPoly)); 728 713 } else { 729 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);714 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 730 715 } 731 716 return(0.0); … … 876 861 return(p_psChebPolynomial4DEval(w,x,y,z, myPoly)); 877 862 } else { 878 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);863 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 879 864 } 880 865 return(0.0); … … 1185 1170 double xSum = 1.0; 1186 1171 1187 // NOTE: Do we want to flag this case?1188 if (myPoly->n == 0) {1189 return(1.0);1190 }1191 1192 1172 for (loop_x = 0; loop_x < myPoly->n; loop_x++) { 1193 1173 if (myPoly->mask[loop_x] == 0) { … … 1236 1216 return(p_psDChebPolynomial1DEval(x, myPoly)); 1237 1217 } else { 1238 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);1218 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 1239 1219 } 1240 1220 return(0.0); … … 1330 1310 return(p_psDChebPolynomial2DEval(x, y, myPoly)); 1331 1311 } else { 1332 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);1312 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 1333 1313 } 1334 1314 return(0.0); … … 1452 1432 return(p_psDChebPolynomial3DEval(x, y, z, myPoly)); 1453 1433 } else { 1454 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);1434 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 1455 1435 } 1456 1436 return(0.0); … … 1603 1583 return(p_psDChebPolynomial4DEval(w,x,y,z, myPoly)); 1604 1584 } else { 1605 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);1585 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 1606 1586 } 1607 1587 return(0.0); -
trunk/psLib/src/dataManip/psMinimize.c
r2219 r2221 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-27 2 1:42:21$11 * @version $Revision: 1.72 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-27 23:31:43 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 24 24 /* INCLUDE FILES */ 25 25 /*****************************************************************************/ 26 #include <stdio.h> 27 #include <float.h> 28 #include <math.h> 29 26 30 #include "psMinimize.h" 27 31 /*****************************************************************************/ … … 1213 1217 psFree(tmpc); 1214 1218 psFree(tmpn); 1215 ps Abort(__func__, "(1) Could not bracket minimum.");1219 psError(__func__, "(1) Could not bracket minimum."); 1216 1220 } 1217 1221 -
trunk/psLib/src/dataManip/psMinimize.h
r2206 r2221 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.3 3$ $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 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 18 18 #define PS_MINIMIZE_H 19 19 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 38 20 /** \file psMinimize.h 39 21 * \brief minimization operations … … 43 25 * \{ 44 26 */ 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" 45 38 46 39 typedef struct -
trunk/psLib/src/dataManip/psStats.c
r2220 r2221 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 5$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-27 2 1:55:09$11 * @version $Revision: 1.76 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-27 23:31:43 $ 13 13 n * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 30 30 #include "psTrace.h" 31 31 #include "psError.h" 32 #include "psAbort.h"33 32 #include "psStats.h" 34 33 #include "psMinimize.h" … … 743 742 // Endure that stats->clipIter is within the proper range. 744 743 if (!((PS_CLIPPED_NUM_ITER_LB <= stats->clipIter) && (stats->clipIter <= PS_CLIPPED_NUM_ITER_UB))) { 745 ps Abort(__func__, "Unallowed value for clipIter (%d).\n", stats->clipIter);744 psError(__func__, "Unallowed value for clipIter (%d).\n", stats->clipIter); 746 745 } 747 746 // Endure that stats->clipSigma is within the proper range. 748 747 if (!((PS_CLIPPED_SIGMA_LB <= stats->clipSigma) && (stats->clipSigma <= PS_CLIPPED_SIGMA_UB))) { 749 ps Abort(__func__, "Unallowed value for clipSigma (%f).\n", stats->clipSigma);748 psError(__func__, "Unallowed value for clipSigma (%f).\n", stats->clipSigma); 750 749 } 751 750 // We allocate a temporary mask vector since during the iterative … … 763 762 } 764 763 // 1. Compute the sample median. 765 // NOTE: This seems odd. Verify with IfA that we want to calculate the764 // XXX: This seems odd. Verify with IfA that we want to calculate the 766 765 // median here, not the mean. 767 766 p_psVectorSampleMedian(myVector, maskVector, maskVal, stats); … … 1453 1452 // Calculate the bounds for each bin. 1454 1453 binSize = (upper - lower) / (float)n; 1455 // NOTE: Is the following necessary? It prevents the max data point1454 // XXX: Is the following necessary? It prevents the max data point 1456 1455 // from being in a non-existant bin. 1457 1456 binSize += FLT_EPSILON; … … 1546 1545 PS_VECTOR_CHECK_TYPE(out->bounds, PS_TYPE_F32, NULL); 1547 1546 PS_VECTOR_CHECK_TYPE(out->nums, PS_TYPE_U32, NULL); 1547 PS_INT_CHECK_NON_NEGATIVE(out->nums->n, NULL); 1548 1548 PS_VECTOR_CHECK_NULL(in, NULL); 1549 1549 if (mask != NULL) { … … 1567 1567 } 1568 1568 1569 // NOTE: determine the correct action for a variety of other cases:1570 // in vector has 0 elements, and histogram structure has zero bins.1571 1569 1572 1570 numBins = out->nums->n; … … 1589 1587 binNum = (psS32)((inF32->data.F32[i] - out->bounds->data.F32[0]) / binSize); 1590 1588 1591 // NOTE: This nextif-statement really shouldn't be necessary.1592 // However, d oto numerical lack of precision, we occasionally1589 // XXX: This if-statement really shouldn't be necessary. 1590 // However, due to numerical lack of precision, we occasionally 1593 1591 // produce a binNum outside the range of bins. 1594 1592 if (binNum >= out->nums->n) { … … 1657 1655 // do nothing 1658 1656 } else { 1659 ps Abort(__func__, "unsupported vector type 0x%x\n", in->type.type);1657 psError(__func__, "unsupported vector type 0x%x\n", in->type.type); 1660 1658 } 1661 1659 return (tmp); … … 1674 1672 Returns 1675 1673 The stats structure. 1676 1677 NOTE: The current strategy is to implement everything assuming that all1678 input data is of type PS_TYPE_F32. Once the basic code is in place, we will1679 macro-ize everything and add PS_TYPE_U16 and PS_TYPE_F64.1680 1674 *****************************************************************************/ 1681 1675 psStats* psVectorStats(psStats* stats, … … 1712 1706 } 1713 1707 // ************************************************************************ 1714 // NOTE: The Stdev calculation requires the mean. Should we assume the1708 // XXX: The Stdev calculation requires the mean. Should we assume the 1715 1709 // mean has already been calculated? Or should we always calculate it? 1716 1710 if (stats->options & PS_STAT_SAMPLE_STDEV) { -
trunk/psLib/src/math/psConstants.h
r2220 r2221 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-10-27 2 1:55:09$8 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-10-27 23:31:43 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 103 103 #define PS_VECTOR_CHECK_TYPE_F32_OR_F64(NAME, RVAL) \ 104 104 if ((NAME->type.type != PS_TYPE_F32) && (NAME->type.type != PS_TYPE_F64)) { \ 105 ps Abort(__func__, "psVector %s: bad type(%d)", #NAME, NAME->type.type); \105 psError(__func__, "psVector %s: bad type(%d)", #NAME, NAME->type.type); \ 106 106 return(RVAL); \ 107 107 } \ -
trunk/psLib/src/math/psMinimize.c
r2219 r2221 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-27 2 1:42:21$11 * @version $Revision: 1.72 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-27 23:31:43 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 24 24 /* INCLUDE FILES */ 25 25 /*****************************************************************************/ 26 #include <stdio.h> 27 #include <float.h> 28 #include <math.h> 29 26 30 #include "psMinimize.h" 27 31 /*****************************************************************************/ … … 1213 1217 psFree(tmpc); 1214 1218 psFree(tmpn); 1215 ps Abort(__func__, "(1) Could not bracket minimum.");1219 psError(__func__, "(1) Could not bracket minimum."); 1216 1220 } 1217 1221 -
trunk/psLib/src/math/psMinimize.h
r2206 r2221 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.3 3$ $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 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 18 18 #define PS_MINIMIZE_H 19 19 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 38 20 /** \file psMinimize.h 39 21 * \brief minimization operations … … 43 25 * \{ 44 26 */ 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" 45 38 46 39 typedef struct -
trunk/psLib/src/math/psPolynomial.c
r2218 r2221 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.5 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-10-27 2 1:25:52$9 * @version $Revision: 1.57 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-10-27 23:31:43 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 32 32 #include "psTrace.h" 33 33 #include "psError.h" 34 #include "psAbort.h"35 34 #include "psLogMsg.h" 36 35 #include "psFunctions.h" … … 145 144 Gaussian distribution as well. 146 145 147 NOTE:XXX: There is no way to seed the random generator.146 XXX: There is no way to seed the random generator. 148 147 *****************************************************************************/ 149 148 psVector* psGaussianDev(float mean, float sigma, psS32 Npts) … … 167 166 } 168 167 169 // NOTE: Should I free r as well?168 // XXX: Should I free r, T as well? This is a memory leak. 170 169 return(gauss); 171 170 } … … 426 425 } 427 426 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 442 427 for (loop_x = 0; loop_x < myPoly->n; loop_x++) { 443 428 if (myPoly->mask[loop_x] == 0) { … … 508 493 return(p_psChebPolynomial1DEval(x, myPoly)); 509 494 } else { 510 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);495 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 511 496 } 512 497 return(0.0); … … 604 589 return(p_psChebPolynomial2DEval(x, y, myPoly)); 605 590 } else { 606 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);591 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 607 592 } 608 593 return(0.0); … … 727 712 return(p_psChebPolynomial3DEval(x, y, z, myPoly)); 728 713 } else { 729 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);714 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 730 715 } 731 716 return(0.0); … … 876 861 return(p_psChebPolynomial4DEval(w,x,y,z, myPoly)); 877 862 } else { 878 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);863 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 879 864 } 880 865 return(0.0); … … 1185 1170 double xSum = 1.0; 1186 1171 1187 // NOTE: Do we want to flag this case?1188 if (myPoly->n == 0) {1189 return(1.0);1190 }1191 1192 1172 for (loop_x = 0; loop_x < myPoly->n; loop_x++) { 1193 1173 if (myPoly->mask[loop_x] == 0) { … … 1236 1216 return(p_psDChebPolynomial1DEval(x, myPoly)); 1237 1217 } else { 1238 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);1218 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 1239 1219 } 1240 1220 return(0.0); … … 1330 1310 return(p_psDChebPolynomial2DEval(x, y, myPoly)); 1331 1311 } else { 1332 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);1312 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 1333 1313 } 1334 1314 return(0.0); … … 1452 1432 return(p_psDChebPolynomial3DEval(x, y, z, myPoly)); 1453 1433 } else { 1454 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);1434 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 1455 1435 } 1456 1436 return(0.0); … … 1603 1583 return(p_psDChebPolynomial4DEval(w,x,y,z, myPoly)); 1604 1584 } else { 1605 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);1585 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 1606 1586 } 1607 1587 return(0.0); -
trunk/psLib/src/math/psSpline.c
r2218 r2221 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.5 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-10-27 2 1:25:52$9 * @version $Revision: 1.57 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-10-27 23:31:43 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 32 32 #include "psTrace.h" 33 33 #include "psError.h" 34 #include "psAbort.h"35 34 #include "psLogMsg.h" 36 35 #include "psFunctions.h" … … 145 144 Gaussian distribution as well. 146 145 147 NOTE:XXX: There is no way to seed the random generator.146 XXX: There is no way to seed the random generator. 148 147 *****************************************************************************/ 149 148 psVector* psGaussianDev(float mean, float sigma, psS32 Npts) … … 167 166 } 168 167 169 // NOTE: Should I free r as well?168 // XXX: Should I free r, T as well? This is a memory leak. 170 169 return(gauss); 171 170 } … … 426 425 } 427 426 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 442 427 for (loop_x = 0; loop_x < myPoly->n; loop_x++) { 443 428 if (myPoly->mask[loop_x] == 0) { … … 508 493 return(p_psChebPolynomial1DEval(x, myPoly)); 509 494 } else { 510 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);495 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 511 496 } 512 497 return(0.0); … … 604 589 return(p_psChebPolynomial2DEval(x, y, myPoly)); 605 590 } else { 606 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);591 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 607 592 } 608 593 return(0.0); … … 727 712 return(p_psChebPolynomial3DEval(x, y, z, myPoly)); 728 713 } else { 729 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);714 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 730 715 } 731 716 return(0.0); … … 876 861 return(p_psChebPolynomial4DEval(w,x,y,z, myPoly)); 877 862 } else { 878 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);863 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 879 864 } 880 865 return(0.0); … … 1185 1170 double xSum = 1.0; 1186 1171 1187 // NOTE: Do we want to flag this case?1188 if (myPoly->n == 0) {1189 return(1.0);1190 }1191 1192 1172 for (loop_x = 0; loop_x < myPoly->n; loop_x++) { 1193 1173 if (myPoly->mask[loop_x] == 0) { … … 1236 1216 return(p_psDChebPolynomial1DEval(x, myPoly)); 1237 1217 } else { 1238 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);1218 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 1239 1219 } 1240 1220 return(0.0); … … 1330 1310 return(p_psDChebPolynomial2DEval(x, y, myPoly)); 1331 1311 } else { 1332 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);1312 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 1333 1313 } 1334 1314 return(0.0); … … 1452 1432 return(p_psDChebPolynomial3DEval(x, y, z, myPoly)); 1453 1433 } else { 1454 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);1434 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 1455 1435 } 1456 1436 return(0.0); … … 1603 1583 return(p_psDChebPolynomial4DEval(w,x,y,z, myPoly)); 1604 1584 } else { 1605 ps Abort(__func__, "Unknown polynomial type 0x%x\n", myPoly->type);1585 psError(__func__, "Unknown polynomial type 0x%x\n", myPoly->type); 1606 1586 } 1607 1587 return(0.0); -
trunk/psLib/src/math/psStats.c
r2220 r2221 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 5$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-27 2 1:55:09$11 * @version $Revision: 1.76 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-27 23:31:43 $ 13 13 n * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 30 30 #include "psTrace.h" 31 31 #include "psError.h" 32 #include "psAbort.h"33 32 #include "psStats.h" 34 33 #include "psMinimize.h" … … 743 742 // Endure that stats->clipIter is within the proper range. 744 743 if (!((PS_CLIPPED_NUM_ITER_LB <= stats->clipIter) && (stats->clipIter <= PS_CLIPPED_NUM_ITER_UB))) { 745 ps Abort(__func__, "Unallowed value for clipIter (%d).\n", stats->clipIter);744 psError(__func__, "Unallowed value for clipIter (%d).\n", stats->clipIter); 746 745 } 747 746 // Endure that stats->clipSigma is within the proper range. 748 747 if (!((PS_CLIPPED_SIGMA_LB <= stats->clipSigma) && (stats->clipSigma <= PS_CLIPPED_SIGMA_UB))) { 749 ps Abort(__func__, "Unallowed value for clipSigma (%f).\n", stats->clipSigma);748 psError(__func__, "Unallowed value for clipSigma (%f).\n", stats->clipSigma); 750 749 } 751 750 // We allocate a temporary mask vector since during the iterative … … 763 762 } 764 763 // 1. Compute the sample median. 765 // NOTE: This seems odd. Verify with IfA that we want to calculate the764 // XXX: This seems odd. Verify with IfA that we want to calculate the 766 765 // median here, not the mean. 767 766 p_psVectorSampleMedian(myVector, maskVector, maskVal, stats); … … 1453 1452 // Calculate the bounds for each bin. 1454 1453 binSize = (upper - lower) / (float)n; 1455 // NOTE: Is the following necessary? It prevents the max data point1454 // XXX: Is the following necessary? It prevents the max data point 1456 1455 // from being in a non-existant bin. 1457 1456 binSize += FLT_EPSILON; … … 1546 1545 PS_VECTOR_CHECK_TYPE(out->bounds, PS_TYPE_F32, NULL); 1547 1546 PS_VECTOR_CHECK_TYPE(out->nums, PS_TYPE_U32, NULL); 1547 PS_INT_CHECK_NON_NEGATIVE(out->nums->n, NULL); 1548 1548 PS_VECTOR_CHECK_NULL(in, NULL); 1549 1549 if (mask != NULL) { … … 1567 1567 } 1568 1568 1569 // NOTE: determine the correct action for a variety of other cases:1570 // in vector has 0 elements, and histogram structure has zero bins.1571 1569 1572 1570 numBins = out->nums->n; … … 1589 1587 binNum = (psS32)((inF32->data.F32[i] - out->bounds->data.F32[0]) / binSize); 1590 1588 1591 // NOTE: This nextif-statement really shouldn't be necessary.1592 // However, d oto numerical lack of precision, we occasionally1589 // XXX: This if-statement really shouldn't be necessary. 1590 // However, due to numerical lack of precision, we occasionally 1593 1591 // produce a binNum outside the range of bins. 1594 1592 if (binNum >= out->nums->n) { … … 1657 1655 // do nothing 1658 1656 } else { 1659 ps Abort(__func__, "unsupported vector type 0x%x\n", in->type.type);1657 psError(__func__, "unsupported vector type 0x%x\n", in->type.type); 1660 1658 } 1661 1659 return (tmp); … … 1674 1672 Returns 1675 1673 The stats structure. 1676 1677 NOTE: The current strategy is to implement everything assuming that all1678 input data is of type PS_TYPE_F32. Once the basic code is in place, we will1679 macro-ize everything and add PS_TYPE_U16 and PS_TYPE_F64.1680 1674 *****************************************************************************/ 1681 1675 psStats* psVectorStats(psStats* stats, … … 1712 1706 } 1713 1707 // ************************************************************************ 1714 // NOTE: The Stdev calculation requires the mean. Should we assume the1708 // XXX: The Stdev calculation requires the mean. Should we assume the 1715 1709 // mean has already been calculated? Or should we always calculate it? 1716 1710 if (stats->options & PS_STAT_SAMPLE_STDEV) { -
trunk/psLib/src/sys/psTrace.c
r2204 r2221 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.3 6$ $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 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 71 71 comp->level = level; 72 72 comp->n = 0; 73 comp->p_psSpecified = false; 73 74 comp->subcomp = NULL; 74 75 return comp; … … 267 268 level, 268 269 compName); 270 269 271 if (comp[0] != '.') { 270 272 psFree(compName); -
trunk/psLib/src/sys/psTrace.h
r2204 r2221 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.2 5$ $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 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 18 18 19 19 #define PS_UNKNOWN_TRACE_LEVEL -9999 // we don't know this name's level 20 #define PS_DEFAULT_TRACE_LEVEL -120 #define PS_DEFAULT_TRACE_LEVEL 0 21 21 22 22 /** \addtogroup LogTrace … … 51 51 const char *name; // last part of name of component 52 52 psS32 level; // trace level for this component 53 bool p_psSpecified; 53 54 psS32 n; // number of subcomponents 54 55 struct p_psComponent* *subcomp; // next level of subcomponents -
trunk/psLib/src/sysUtils/psTrace.c
r2204 r2221 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.3 6$ $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 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 71 71 comp->level = level; 72 72 comp->n = 0; 73 comp->p_psSpecified = false; 73 74 comp->subcomp = NULL; 74 75 return comp; … … 267 268 level, 268 269 compName); 270 269 271 if (comp[0] != '.') { 270 272 psFree(compName); -
trunk/psLib/src/sysUtils/psTrace.h
r2204 r2221 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.2 5$ $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 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 18 18 19 19 #define PS_UNKNOWN_TRACE_LEVEL -9999 // we don't know this name's level 20 #define PS_DEFAULT_TRACE_LEVEL -120 #define PS_DEFAULT_TRACE_LEVEL 0 21 21 22 22 /** \addtogroup LogTrace … … 51 51 const char *name; // last part of name of component 52 52 psS32 level; // trace level for this component 53 bool p_psSpecified; 53 54 psS32 n; // number of subcomponents 54 55 struct p_psComponent* *subcomp; // next level of subcomponents -
trunk/psLib/src/types/psHash.c
r2204 r2221 11 11 * @author George Gusciora, MHPCC 12 12 * 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 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 24 24 #include "psTrace.h" 25 25 #include "psError.h" 26 #include "psAbort.h"27 26 28 27 #include "psCollectionsErrors.h" … … 250 249 // anyway. 251 250 if ((hash < 0) || (hash >= table->nbucket)) { 252 ps Abort(__func__, "Internal hash function out of range (%d)", hash);251 psError(__func__, "Internal hash function out of range (%d)", hash); 253 252 } 254 253 // ptr will have the correct hash bucket.
Note:
See TracChangeset
for help on using the changeset viewer.
