GasLiftSingleWell: split typetag independent code to separate class

This commit is contained in:
Arne Morten Kvarving
2021-05-20 14:20:27 +02:00
parent e4f4670e95
commit 1614767362
7 changed files with 1463 additions and 1421 deletions

View File

@@ -163,7 +163,7 @@ BOOST_AUTO_TEST_CASE(G1)
WellState &well_state = const_cast<WellState &>(well_model.wellState());
GasLiftSingleWell glift {*std_well, *(simulator.get()), summary_state,
deferred_logger, well_state};
auto state = glift.runOptimize();
auto state = glift.runOptimize(simulator->model().newtonMethod().numIterations());
BOOST_CHECK_CLOSE(state->oilRate(), 0.01736111111111111, 1e-8);
BOOST_CHECK_CLOSE(state->gasRate(), 1.6464646999768586, 1e-8);
BOOST_CHECK(state->oilIsLimited());