mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add Procedure for Calculating Basic FIP Region Statistics
This commit implements the parallel version of
EclipseState::computeFipRegionStatistics()
which computes a FIPRegionStatistics object for the current run's
fluid-in-place regions. The object construction uses an MPI-aware
reduction process to compute the maximum region IDs across all MPI
ranks.
While here, also unconditionally form the statistics object as part
of the EclWriter's constructor to ensure that all ranks participate
in the process. The initial approach of constructing the object on
first use is not robust in parallel. We may however wish to compute
these statistics only when needed. If so, that will be the subject
of follow-up work.
This commit is contained in:
@@ -170,6 +170,8 @@ public:
|
||||
}
|
||||
|
||||
this->rank_ = this->simulator_.vanguard().grid().comm().rank();
|
||||
|
||||
this->simulator_.vanguard().eclState().computeFipRegionStatistics();
|
||||
}
|
||||
|
||||
~EclWriter()
|
||||
|
||||
Reference in New Issue
Block a user