Ignore:
Timestamp:
08/15/12 19:10:41 (13 years ago)
Author:
glperez
Message:

CHG: Correction from the 13046 revision

File:
1 edited

Legend:

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

    r13055 r13056  
    4444        iter=0;
    4545        fxmin = (*f)(xmin,optargs);
    46         if (xIsNan<IssmDouble>(fxmin)) _error2_("Function evaluation returned NaN");
     46        if (xIsNan<IssmDouble>(fxmin)) _error_("Function evaluation returned NaN");
    4747        cout<<setprecision(5);
    4848        if(VerboseControl()) _pprintLine_("");
     
    5151        if(VerboseControl()) _pprintLine_("           N/A    "<<setw(12)<<xmin<<"  "<<setw(12)<<fxmin<<"           N/A         boundary");
    5252        fxmax = (*f)(xmax,optargs);
    53         if (xIsNan<IssmDouble>(fxmax)) _error2_("Function evaluation returned NaN");
     53        if (xIsNan<IssmDouble>(fxmax)) _error_("Function evaluation returned NaN");
    5454        if(VerboseControl()) _pprintLine_("           N/A    "<<setw(12)<<xmax<<"  "<<setw(12)<<fxmax<<"           N/A         boundary");
    5555
     
    7575        /*2: call the function to be evaluated*/
    7676        fxbest = (*f)(x,optargs);
    77         if(xIsNan<IssmDouble>(fxbest)) _error2_("Function evaluation returned NaN");
     77        if(xIsNan<IssmDouble>(fxbest)) _error_("Function evaluation returned NaN");
    7878        iter=iter+1;
    7979
     
    159159                //evaluate function on x
    160160                fx = (*f)(x,optargs);
    161                 if(xIsNan<IssmDouble>(fx)) _error2_("Function evaluation returned NaN");
     161                if(xIsNan<IssmDouble>(fx)) _error_("Function evaluation returned NaN");
    162162                iter=iter+1;
    163163
Note: See TracChangeset for help on using the changeset viewer.