Ignore:
Timestamp:
08/14/12 16:58:21 (13 years ago)
Author:
Mathieu Morlighem
Message:

CHG: renaming _error2_ _error_

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/shared/Numerics/OptimalSearch.cpp

    r12832 r13036  
    4141        //get the value of the function at the first boundary
    4242        fx1= (*f)(x1,optargs);
    43         if (xIsNan<IssmDouble>(fx1)) _error2_("Function evaluation returned NaN");
     43        if (xIsNan<IssmDouble>(fx1)) _error_("Function evaluation returned NaN");
    4444        cout<<setprecision(5);
    4545        if(VerboseControl()) _pprintLine_("");
     
    5757                iter++;
    5858                fx2 = (*f)(x2,optargs);
    59                 if (xIsNan<IssmDouble>(fx2)) _error2_("Function evaluation returned NaN");
     59                if (xIsNan<IssmDouble>(fx2)) _error_("Function evaluation returned NaN");
    6060                if(VerboseControl())
    6161                 _pprintLine_("         "<<setw(5)<<iter<<"    "<<setw(12)<<x2<<"  "<<setw(12)<<fx2<<"  "<<(fabs(x2-x1)>fabs(fx2-fx1)?fabs(fx2-fx1):fabs(x2-x1)));
Note: See TracChangeset for help on using the changeset viewer.