Make sure to filter out wells from other processes in WellTestState

This commit is contained in:
Joakim Hove 2021-10-15 14:14:40 +02:00
parent c8cbd32f85
commit 9a9ccb90b8
4 changed files with 9 additions and 2 deletions

View File

@ -46,7 +46,7 @@ void eclStateBroadcast(Parallel::Communication comm, EclipseState& eclState, Sch
SummaryConfig& summaryConfig,
UDQState& udqState,
Action::State& actionState,
WellTestState& /* wtestState */)
WellTestState& wtestState)
{
Opm::EclMpiSerializer ser(comm);
ser.broadcast(eclState);

View File

@ -279,7 +279,7 @@ initFromRestartFile(const RestartValue& restartValues,
}
this->active_wgstate_.well_test_state = std::move(wtestState);
this->active_wgstate_.wtest_state(std::move(wtestState));
this->commitWGState();
initial_step_ = false;
}

View File

@ -28,4 +28,10 @@ WGState::WGState(const PhaseUsage& pu) :
well_test_state{}
{}
void WGState::wtest_state(WellTestState wtest_state)
{
wtest_state.filter_wells( this->well_state.wells() );
this->well_test_state = std::move(wtest_state);
}
}

View File

@ -34,6 +34,7 @@ struct PhaseUsage;
struct WGState {
WGState(const PhaseUsage& pu);
void wtest_state(WellTestState wtest_state);
WellState well_state;
GroupState group_state;