Assign number of phases in WellState constructor

This commit is contained in:
Joakim Hove
2021-04-21 13:07:57 +02:00
parent 763503d13c
commit c8db0d1090
4 changed files with 33 additions and 22 deletions
@@ -121,7 +121,7 @@ namespace {
buildWellState(const Setup& setup, const std::size_t timeStep,
std::vector<Opm::ParallelWellInfo>& pinfos)
{
auto state = Opm::WellStateFullyImplicitBlackoil{};
auto state = Opm::WellStateFullyImplicitBlackoil{setup.pu.num_phases};
const auto cpress =
std::vector<double>(setup.grid.c_grid()->number_of_cells,