mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2309 from akva2/fix_relperm_diag_parallel
fixed: run RelpermDiagnostics on the global grid in parallel runs
This commit is contained in:
@@ -449,7 +449,11 @@ namespace Opm
|
||||
// Run relperm diagnostics if we have more than one phase.
|
||||
if (FluidSystem::numActivePhases() > 1) {
|
||||
RelpermDiagnostics diagnostic;
|
||||
if (mpi_size_ > 1)
|
||||
this->grid().switchToGlobalView();
|
||||
diagnostic.diagnosis(eclState(), deck(), this->grid());
|
||||
if (mpi_size_ > 1)
|
||||
this->grid().switchToDistributedView();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user