mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-12 01:11:55 -06:00
Make sure to filter out wells from other processes in WellTestState
This commit is contained in:
parent
c8cbd32f85
commit
9a9ccb90b8
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ struct PhaseUsage;
|
||||
|
||||
struct WGState {
|
||||
WGState(const PhaseUsage& pu);
|
||||
void wtest_state(WellTestState wtest_state);
|
||||
|
||||
WellState well_state;
|
||||
GroupState group_state;
|
||||
|
Loading…
Reference in New Issue
Block a user