From 622103a367a8be904404a41e962511007a165920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Tue, 22 Aug 2023 16:32:58 +0200 Subject: [PATCH] Avoid collective operation in single-domain context. --- opm/simulators/flow/BlackoilModelEbosNldd.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/opm/simulators/flow/BlackoilModelEbosNldd.hpp b/opm/simulators/flow/BlackoilModelEbosNldd.hpp index badec44a5..5fb2a348b 100644 --- a/opm/simulators/flow/BlackoilModelEbosNldd.hpp +++ b/opm/simulators/flow/BlackoilModelEbosNldd.hpp @@ -460,7 +460,6 @@ private: std::vector& maxCoeffCell) { const auto& ebosSimulator = model_.ebosSimulator(); - const auto& grid = model_.ebosSimulator().vanguard().grid(); double pvSumLocal = 0.0; double numAquiferPvSumLocal = 0.0; @@ -474,7 +473,6 @@ private: const auto& elemEndIt = gridView.template end(); IsNumericalAquiferCell isNumericalAquiferCell(gridView.grid()); - OPM_BEGIN_PARALLEL_TRY_CATCH(); for (auto elemIt = gridView.template begin(); elemIt != elemEndIt; ++elemIt) @@ -502,7 +500,6 @@ private: model_.getMaxCoeff(cell_idx, intQuants, fs, ebosResid, pvValue, B_avg, R_sum, maxCoeff, maxCoeffCell); } - OPM_END_PARALLEL_TRY_CATCH("BlackoilModelEbos::localConvergenceData() failed: ", grid.comm()); // compute local average in terms of global number of elements const int bSize = B_avg.size();