IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 3, 2004, 3:05:00 PM (22 years ago)
Author:
desonia
Message:

changed the psError signature to match SDRS. Also made misc. cleanups as
I was combing the files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMinimize.c

    r2269 r2273  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.84 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-11-03 03:30:30 $
     11 *  @version $Revision: 1.85 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-11-04 01:04:59 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    291291
    292292    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",
    294295                y32->n, mySpline->n);
    295296        return(NULL);
     
    318319    // Check if these are cubic splines (n==4).  If not, psError.
    319320    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.",
    321323                (mySpline->spline[0])->n-1);
    322324        return(NULL);
     
    952954        PS_VECTOR_GEN_X_INDEX_STATIC_F64(x64Static, y->n);
    953955        if (myPoly->type == PS_POLYNOMIAL_CHEB) {
    954             p_psNormalizeVectorRange(x64Static, -1.0, 1.0);
     956            psNormalizeVectorRange(x64Static, -1.0, 1.0);
    955957        }
    956958        x64 = x64Static;
     
    968970        tmpPoly = VectorFitPolynomial1DOrd(myPoly, x64, y64, yErr64);
    969971    } else {
    970         psError(__func__, "unknown polynomial type.\n");
     972        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
     973                "unknown polynomial type.\n");
    971974        return(NULL);
    972975    }
     
    13651368    bracket = p_psDetermineBracket2(params, line, paramMask, coords, func);
    13661369    if (bracket == NULL) {
    1367         psError(__func__, "(1) Could not bracket minimum.");
     1370        psError(PS_ERR_UNKNOWN, false,
     1371                "Could not bracket minimum.");
    13681372        return(NAN);
    13691373    }
     
    15521556                                  func);
    15531557                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");
    15551560                    psFree(v);
    15561561                    return(false);
     
    15921597        mul = p_psLineMin(&dummyMin, params, u, myParamMask, coords, func);
    15931598        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.");
    15951601            psFree(v);
    15961602            return(false);
Note: See TracChangeset for help on using the changeset viewer.