From 598e9fa10226f3b73beb8ef64dc064bf57910fec Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Thu, 2 Sep 2021 13:09:32 +0200 Subject: [PATCH] [bugfix] Fix sequential run after #979 Definition of the communicator was moved inside a `#if HAVE_MPI` there. This commit queries the communicator again below to fix this. --- opm/simulators/utils/readDeck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/utils/readDeck.cpp b/opm/simulators/utils/readDeck.cpp index 42550d686..3557f42a7 100644 --- a/opm/simulators/utils/readDeck.cpp +++ b/opm/simulators/utils/readDeck.cpp @@ -352,7 +352,7 @@ void readDeck(int rank, std::string& deckFilename, std::unique_ptr& d errorGuard->clear(); } - parseSuccess = comm.min(parseSuccess); + parseSuccess = Dune::MPIHelper::getCollectiveCommunication().min(parseSuccess); if (!parseSuccess) {