From c67bdf8aeb7d4f33b4f43b8e5d8a40d06cda0783 Mon Sep 17 00:00:00 2001 From: OPMUSER Date: Fri, 23 Sep 2022 13:53:29 +0800 Subject: [PATCH] Update VFPProdTable.cpp The error message for when VFPPROD tables had non-monotonic entries had the table number and the number of errors reversed. This PR fixes this output discrepancy. --- src/opm/input/eclipse/Schedule/VFPProdTable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opm/input/eclipse/Schedule/VFPProdTable.cpp b/src/opm/input/eclipse/Schedule/VFPProdTable.cpp index 7b905106e..25e0791f4 100644 --- a/src/opm/input/eclipse/Schedule/VFPProdTable.cpp +++ b/src/opm/input/eclipse/Schedule/VFPProdTable.cpp @@ -399,11 +399,11 @@ void VFPProdTable::check() { if (error_count > 0) { const auto& location = this->m_location; - OpmLog::warning(fmt::format("VFPPROD table {0} has {1} nonmonotonic points of BHP(THP)\n" + OpmLog::warning(fmt::format("VFPPROD table {0} has {1} non-monotonic points of BHP(THP)\n" "In {2} line {3}\n" "This may cause convergence issues due to switching between BHP and THP control.\n", - error_count, m_table_num, + error_count, location.filename, location.lineno)); }