Decrease tolerance requirement for x1-x0 in modifiedregularFalsi
This commit is contained in:
parent
203a384324
commit
e36c5bd46f
@ -91,7 +91,7 @@ namespace Opm
|
|||||||
iterations_used = 0;
|
iterations_used = 0;
|
||||||
// In every iteraton, x1 is the last point computed,
|
// In every iteraton, x1 is the last point computed,
|
||||||
// and x0 is the last point computed that makes it a bracket.
|
// and x0 is the last point computed that makes it a bracket.
|
||||||
while (fabs(x1 - x0) >= 0.95*eps) {
|
while (fabs(x1 - x0) >= 1e-2*eps) {
|
||||||
double xnew = regulaFalsiStep(x0, x1, f0, f1);
|
double xnew = regulaFalsiStep(x0, x1, f0, f1);
|
||||||
double fnew = f(xnew);
|
double fnew = f(xnew);
|
||||||
// cout << "xnew = " << xnew << " fnew = " << fnew << endl;
|
// cout << "xnew = " << xnew << " fnew = " << fnew << endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user