From b24bf9d3392709e57877b8f7178dc212d5a558fd Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 2 Jan 2023 10:07:34 +0100 Subject: [PATCH] WetHumidGasPvt: remove use of sstream --- .../fluidsystems/blackoilpvt/WetHumidGasPvt.hpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/opm/material/fluidsystems/blackoilpvt/WetHumidGasPvt.hpp b/opm/material/fluidsystems/blackoilpvt/WetHumidGasPvt.hpp index 595fc9e05..2f05f683e 100644 --- a/opm/material/fluidsystems/blackoilpvt/WetHumidGasPvt.hpp +++ b/opm/material/fluidsystems/blackoilpvt/WetHumidGasPvt.hpp @@ -34,8 +34,6 @@ #include #include -#include - namespace Opm { #if HAVE_ECL_INPUT @@ -433,12 +431,12 @@ public: return pSat; } - std::stringstream errlog; - errlog << "Finding saturation pressure did not converge:" - << " pSat = " << pSat - << ", Rw = " << Rw; - OpmLog::debug("Wet gas saturation pressure", errlog.str()); - throw NumericalProblem(errlog.str()); + const std::string msg = + "Finding saturation pressure did not converge: " + "pSat = " + std::to_string(getValue(pSat)) + + ", Rw = " + std::to_string(getValue(Rw)); + OpmLog::debug("Wet gas saturation pressure", msg); + throw NumericalProblem(msg); } template