From 166c31d5f8aaf64d4ef47c816b8812d90f74fe25 Mon Sep 17 00:00:00 2001 From: Antonella Ritorto Date: Tue, 31 Oct 2023 08:40:46 +0100 Subject: [PATCH] Bugfix. Deprecated getCollectiveComminication warning --- opm/simulators/linalg/ISTLSolverEbos.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opm/simulators/linalg/ISTLSolverEbos.hpp b/opm/simulators/linalg/ISTLSolverEbos.hpp index de72f0431..a3ca67571 100644 --- a/opm/simulators/linalg/ISTLSolverEbos.hpp +++ b/opm/simulators/linalg/ISTLSolverEbos.hpp @@ -294,8 +294,7 @@ std::unique_ptr blockJacobiAdjacency(const Grid& grid, OPM_THROW(std::logic_error, "Solver number " + std::to_string(num) + " not available."); } activeSolverNum_ = num; - auto cc = Dune::MPIHelper::getCollectiveCommunication(); - if (cc.rank() == 0) { + if (simulator_.gridView().comm().rank() == 0) { OpmLog::debug("Active solver = " + std::to_string(activeSolverNum_) + " (" + parameters_[activeSolverNum_].linsolver_ + ")"); }