mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Broadcast schedule another time after filtering connection on rank 0
Only after rank zero does the filtering the schedule the well definitions in there are guarateed to have no perforations to inactive cells. Therefore we broadcast the schedule another time to publish this to all processes. Previously, we did the filtering locally on these processes bit that did also remove perforations to cells that are active globally but not locally. That seems very hard to work with when allowing distributed wells.
This commit is contained in:
@@ -49,4 +49,9 @@ void eclStateBroadcast(EclipseState& eclState, Schedule& schedule,
|
||||
ser.broadcast(summaryConfig);
|
||||
}
|
||||
|
||||
void eclScheduleBroadcast(Schedule& schedule)
|
||||
{
|
||||
Opm::EclMpiSerializer ser(Dune::MPIHelper::getCollectiveCommunication());
|
||||
ser.broadcast(schedule);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,9 @@ class SummaryConfig;
|
||||
void eclStateBroadcast(EclipseState& eclState, Schedule& schedule,
|
||||
SummaryConfig& summaryConfig);
|
||||
|
||||
/// \brief Broadcasts an schedule from root node in parallel runs.
|
||||
void eclScheduleBroadcast(Schedule& schedule);
|
||||
|
||||
} // end namespace Opm
|
||||
|
||||
#endif // PARALLEL_SERIALIZATION_HPP
|
||||
|
||||
Reference in New Issue
Block a user