mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-14 04:43:27 -06:00
updating the interval when doing bisectBracket()
to avoid getting stuck and iterate for no purpose. It might not affect the result much, while from the code, it looks like it should be updated iteratively.
This commit is contained in:
parent
525cc76d62
commit
2b054ce2a2
@ -695,6 +695,7 @@ bisectBracket(const std::function<double(const double)>& eq,
|
||||
eq_high = eq(high);
|
||||
abs_high = std::fabs(eq_high);
|
||||
}
|
||||
interval = high - low;
|
||||
++bracket_attempts;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user