fixed: run RelpermDiagnostics on the global grid in parallel runs

This commit is contained in:
Arne Morten Kvarving 2020-01-29 09:40:24 +01:00
parent 27246b91f4
commit d4d69c4978

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