From d4d69c49780277ccc6ab2f435a01ff71de90e230 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 29 Jan 2020 09:40:24 +0100 Subject: [PATCH] fixed: run RelpermDiagnostics on the global grid in parallel runs --- opm/simulators/flow/FlowMainEbos.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opm/simulators/flow/FlowMainEbos.hpp b/opm/simulators/flow/FlowMainEbos.hpp index 2950cd6a6..f110c6bc6 100644 --- a/opm/simulators/flow/FlowMainEbos.hpp +++ b/opm/simulators/flow/FlowMainEbos.hpp @@ -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(); } }