From e24795ba94f617cd7b78273a99a745ffd9a0e4e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Tue, 15 Jan 2013 13:39:35 +0100 Subject: [PATCH] Reduce source sum failure from error to warning. Should extend to sum over sources and boundaries before reinstating. --- opm/core/transport/reorder/TransportModelTracerTofDiscGal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opm/core/transport/reorder/TransportModelTracerTofDiscGal.cpp b/opm/core/transport/reorder/TransportModelTracerTofDiscGal.cpp index 2bb690b14..0f1474eb4 100644 --- a/opm/core/transport/reorder/TransportModelTracerTofDiscGal.cpp +++ b/opm/core/transport/reorder/TransportModelTracerTofDiscGal.cpp @@ -221,7 +221,8 @@ namespace Opm // Sanity check for sources. const double cum_src = std::accumulate(source, source + grid_.number_of_cells, 0.0); if (std::fabs(cum_src) > *std::max_element(source, source + grid_.number_of_cells)*1e-2) { - THROW("Sources do not sum to zero: " << cum_src); + // THROW("Sources do not sum to zero: " << cum_src); + MESSAGE("Warning: sources do not sum to zero: " << cum_src); } #endif degree_ = degree;