split out typetag independent code from BlackoilWellModel

This commit is contained in:
Arne Morten Kvarving
2021-05-19 14:51:14 +02:00
parent ce3d2b17dd
commit 059140f2ee
8 changed files with 1934 additions and 1832 deletions

View File

@@ -160,7 +160,7 @@ BOOST_AUTO_TEST_CASE(G1)
const auto &well = wells_ecl[*idx];
BOOST_CHECK_EQUAL( well.name(), "B-1H");
const auto& summary_state = simulator->vanguard().summaryState();
WellState &well_state = const_cast<WellState &>(well_model.wellState());
WellState &well_state = well_model.wellState();
GasLiftSingleWell glift {*std_well, *(simulator.get()), summary_state,
deferred_logger, well_state};
auto state = glift.runOptimize(simulator->model().newtonMethod().numIterations());