Skip to content

Commit

Permalink
Loosen default tolerance: accelerate convergence.
Browse files Browse the repository at this point in the history
For larger optimizations the default termination value of 1e-10 may be way too small.
So 1e-5 is generally better, but the user can always change it themselves...
  • Loading branch information
rcurtin committed Jan 5, 2015
1 parent 22a4b65 commit 658962f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -34,7 +34,7 @@ class SimpleResidueTermination
* @param minResidue Minimum residue for termination.
* @param maxIterations Maximum number of iterations.
*/
SimpleResidueTermination(const double minResidue = 1e-10,
SimpleResidueTermination(const double minResidue = 1e-5,
const size_t maxIterations = 10000)
: minResidue(minResidue), maxIterations(maxIterations) { }

Expand Down

0 comments on commit 658962f

Please sign in to comment.