Merge pull request #4098 from totto82/extVFP

remove cutoff for extrapolation
This commit is contained in:
Tor Harald Sandve 2022-10-04 08:44:49 +02:00 committed by GitHub
commit 941556ab4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View File

@ -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;
}

View File

@ -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());