mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4617 from GitPaean/updating_interval_avoid_stallment
updating the interval when doing bisectBracket()
This commit is contained in:
commit
61e5ce3d73
@ -695,6 +695,7 @@ bisectBracket(const std::function<double(const double)>& eq,
|
|||||||
eq_high = eq(high);
|
eq_high = eq(high);
|
||||||
abs_high = std::fabs(eq_high);
|
abs_high = std::fabs(eq_high);
|
||||||
}
|
}
|
||||||
|
interval = high - low;
|
||||||
++bracket_attempts;
|
++bracket_attempts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user