Changeset 2273 for trunk/psLib/src/math/psMinimize.c
- Timestamp:
- Nov 3, 2004, 3:05:00 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMinimize.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMinimize.c
r2269 r2273 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.8 4$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-11-0 3 03:30:30$11 * @version $Revision: 1.85 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-11-04 01:04:59 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 291 291 292 292 if (y32->n != (1 + mySpline->n)) { 293 psError(__func__, "data size / spline size mismatch (%d %d)\n", 293 psError(PS_ERR_BAD_PARAMETER_SIZE, true, 294 "data size / spline size mismatch (%d %d)\n", 294 295 y32->n, mySpline->n); 295 296 return(NULL); … … 318 319 // Check if these are cubic splines (n==4). If not, psError. 319 320 if (4 != (mySpline->spline[0])->n) { 320 psError(__func__, "Don't know how to generate %d-order splines.", 321 psError(PS_ERR_BAD_PARAMETER_SIZE, true, 322 "Don't know how to generate %d-order splines.", 321 323 (mySpline->spline[0])->n-1); 322 324 return(NULL); … … 952 954 PS_VECTOR_GEN_X_INDEX_STATIC_F64(x64Static, y->n); 953 955 if (myPoly->type == PS_POLYNOMIAL_CHEB) { 954 p _psNormalizeVectorRange(x64Static, -1.0, 1.0);956 psNormalizeVectorRange(x64Static, -1.0, 1.0); 955 957 } 956 958 x64 = x64Static; … … 968 970 tmpPoly = VectorFitPolynomial1DOrd(myPoly, x64, y64, yErr64); 969 971 } else { 970 psError(__func__, "unknown polynomial type.\n"); 972 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 973 "unknown polynomial type.\n"); 971 974 return(NULL); 972 975 } … … 1365 1368 bracket = p_psDetermineBracket2(params, line, paramMask, coords, func); 1366 1369 if (bracket == NULL) { 1367 psError(__func__, "(1) Could not bracket minimum."); 1370 psError(PS_ERR_UNKNOWN, false, 1371 "Could not bracket minimum."); 1368 1372 return(NAN); 1369 1373 } … … 1552 1556 func); 1553 1557 if (isnan(mul)) { 1554 psError(__func__, "Could not perform line minimization (1).\n"); 1558 psError(PS_ERR_UNKNOWN, false, 1559 "Could not perform line minimization"); 1555 1560 psFree(v); 1556 1561 return(false); … … 1592 1597 mul = p_psLineMin(&dummyMin, params, u, myParamMask, coords, func); 1593 1598 if (isnan(mul)) { 1594 psError(__func__, "Could not perform line minimization. (2)\n"); 1599 psError(PS_ERR_UNKNOWN, false, 1600 "Could not perform line minimization."); 1595 1601 psFree(v); 1596 1602 return(false);
Note:
See TracChangeset
for help on using the changeset viewer.
