Changeset 6616


Ignore:
Timestamp:
11/18/10 08:36:27 (14 years ago)
Author:
Mathieu Morlighem
Message:

minor: better termination flags

File:
1 edited

Legend:

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

    r6574 r6616  
    179179                /*Stop the optimization?*/
    180180                if (sqrt(pow(xbest-xm,2)) < (tol2-0.5*(xmax-xmin))){
    181                         _printf_(VerboseControl(),"      %s%g\n","optimization terminated: the current x satisfies the termination criteria using 'tolx' of" ,tolerance);
     181                        _printf_(VerboseControl(),"      optimization terminated: current x satisfies criteria 'tolx'=%g\n",tolerance);
    182182                        loop=false;
    183183                }
    184184                else if (iter>=maxiter){
    185                         _printf_(VerboseControl(),"      %s\n","exiting: Maximum number of iterations has been exceeded  - increase 'maxiter'\n");
     185                        _printf_(VerboseControl(),"      exiting: Maximum number of iterations has been exceeded  ('maxiter'=%i)\n",maxiter);
    186186                        loop=false;
    187187                }
    188188                else if (!isnan(cm_jump) && (xmin==0) && ((fxbest/fxmin)<cm_jump)){
    189                         _printf_(VerboseControl(),"      %s%g\n","optimization terminated: the current x satisfies the termination criteria using 'cm_jump' of" ,cm_jump);
     189                        _printf_(VerboseControl(),"      optimization terminated: current x satisfies criteria 'cm_jump'=%g\n",cm_jump);
    190190                        loop=false;
    191191                }
Note: See TracChangeset for help on using the changeset viewer.