From 25b8e6f270393bc2c8a9ce4318970dc33e1482b6 Mon Sep 17 00:00:00 2001 From: Antonella Ritorto Date: Thu, 8 May 2025 10:30:53 +0200 Subject: [PATCH] Correct warning branch --- opm/simulators/flow/CpGridVanguard.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/simulators/flow/CpGridVanguard.hpp b/opm/simulators/flow/CpGridVanguard.hpp index daf0e7d118..d1ee6cf7eb 100644 --- a/opm/simulators/flow/CpGridVanguard.hpp +++ b/opm/simulators/flow/CpGridVanguard.hpp @@ -263,8 +263,8 @@ public: this->updateCellDepths_(); this->updateCellThickness_(); } - else { - Opm::OpmLog::warning("Adding LGRs in parallel run is not supported yet.\n"); + else if (this->grid_->comm().size() > 1) { + OpmLog::warning("Adding LGRs in parallel run is not supported yet.\n"); } }