mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
Match interface change for regula falsi solver from opm-core.
This commit is contained in:
parent
b22ba1d224
commit
6d4b87c384
@ -353,7 +353,8 @@ namespace Dune
|
||||
const int max_iter = 40;
|
||||
const double nonlinear_tolerance = 1e-12;
|
||||
int iterations_used = -1;
|
||||
double mod_correct = Opm::modifiedRegulaFalsi(func, mod_low, mod_high, max_iter, nonlinear_tolerance, iterations_used);
|
||||
typedef Opm::RegulaFalsi<Opm::ThrowOnError> RootFinder;
|
||||
double mod_correct = RootFinder::solve(func, mod_low, mod_high, max_iter, nonlinear_tolerance, iterations_used);
|
||||
std::cout << "Moved capillary pressure solution by " << mod_correct << " after "
|
||||
<< iterations_used << " iterations." << std::endl;
|
||||
s = func.lastSaturations();
|
||||
|
Loading…
Reference in New Issue
Block a user