mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4098 from totto82/extVFP
remove cutoff for extrapolation
This commit is contained in:
commit
941556ab4d
@ -134,13 +134,6 @@ InterpData findInterpData(const double value_in, const std::vector<double>& valu
|
||||
}
|
||||
}
|
||||
|
||||
// Disallow extrapolation with higher factor than 3.0.
|
||||
// The factor 3.0 has been chosen because it works well
|
||||
// with certain testcases, and may not be optimal.
|
||||
if (retval.factor_ > 3.0) {
|
||||
retval.factor_ = 3.0;
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
@ -192,7 +192,7 @@ BOOST_AUTO_TEST_CASE(G1)
|
||||
group_info.initialize();
|
||||
auto state = glift.runOptimize(iteration_idx);
|
||||
BOOST_CHECK_CLOSE(state->oilRate(), 0.01736111111111111, 1e-8);
|
||||
BOOST_CHECK_CLOSE(state->gasRate(), 1.6464646999768586, 1e-8);
|
||||
BOOST_CHECK_CLOSE(state->gasRate(), 1.6464, 1e-3);
|
||||
BOOST_CHECK(state->oilIsLimited());
|
||||
BOOST_CHECK(!state->gasIsLimited());
|
||||
BOOST_CHECK(!state->alqIsLimited());
|
||||
|
Loading…
Reference in New Issue
Block a user