From f8bad8fd923ce30c3a01b84c2da3f786b0fa35b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Vingli=20Ods=C3=A6ter?= Date: Thu, 20 Jun 2013 13:30:23 +0200 Subject: [PATCH] Change verbosity level of warning message in transport solver Don't print message "s was clamped in some cells" unless preprocessor symbol 'VERBOSE' is set. --- opm/core/transport/implicit/SinglePointUpwindTwoPhase.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/opm/core/transport/implicit/SinglePointUpwindTwoPhase.hpp b/opm/core/transport/implicit/SinglePointUpwindTwoPhase.hpp index 92d87030..d201f24c 100644 --- a/opm/core/transport/implicit/SinglePointUpwindTwoPhase.hpp +++ b/opm/core/transport/implicit/SinglePointUpwindTwoPhase.hpp @@ -576,9 +576,11 @@ namespace Opm { store_.pc(c) = pc; store_.dpc(c) = dpc; } - if (!in_range) { - std::cout << "Warning: initIteration() - s was clamped in some cells.\n"; - } + if (!in_range) { +#ifdef VERBOSE + std::cout << "Warning: initIteration() - s was clamped in some cells.\n"; +#endif + } return in_range; }