diff --git a/opm/simulators/wells/VFPHelpers.cpp b/opm/simulators/wells/VFPHelpers.cpp index cf0366fbe..f2902d777 100644 --- a/opm/simulators/wells/VFPHelpers.cpp +++ b/opm/simulators/wells/VFPHelpers.cpp @@ -134,13 +134,6 @@ InterpData findInterpData(const double value_in, const std::vector& 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; } diff --git a/tests/test_glift1.cpp b/tests/test_glift1.cpp index 21275f546..7f3735cfa 100644 --- a/tests/test_glift1.cpp +++ b/tests/test_glift1.cpp @@ -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());