removing the latter call this->initFluidSystem_() in FlowProblemBlackoil

adapting to the interface change of the PhaseUsageInfo
This commit is contained in:
Kai Bao committed 2025-09-02 10:19:36 +02:00
1 parent b3e4c4d0d0
commit f057203842
4 files changed
+10 -12

No files matched your search

+5 -1
View File
@@ -65,11 +65,15 @@ struct Setup
explicit Setup(const Deck& deck)
: ecl_state { std::make_unique<EclipseState>(deck) }
, schedule { std::make_unique<Schedule>(deck, *ecl_state, std::make_shared<Python>()) }
, well_state { std::make_unique<WellState<double, IndexTraits>>(PhaseUsage(ecl_state->runspec().phases())) }
{
const int step = 0;
const auto& sched_state = (*this->schedule)[step];
PhaseUsage pu;
pu.initFromPhases(ecl_state->runspec().phases());
this->well_state = std::make_unique<WellState<double, IndexTraits>>(pu);
this->vfp_properties = std::make_unique<VFPProperties<double, IndexTraits>>
(sched_state.vfpinj(), sched_state.vfpprod(), *well_state);
}