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:
Atgeirr Flø Rasmussen
2020-01-31 09:55:52 +01:00
committed by GitHub

View File

@@ -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();
}
}