mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: run RelpermDiagnostics on the global grid in parallel runs
This commit is contained in:
parent
27246b91f4
commit
d4d69c4978
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user