From 99e5dab134b2746d990806f0e6090b27ae0b48b5 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 2 Jan 2023 15:24:16 +0100 Subject: [PATCH] BlackoilWellModelGeneric: avoid use of sstream --- opm/simulators/wells/BlackoilWellModelGeneric.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opm/simulators/wells/BlackoilWellModelGeneric.cpp b/opm/simulators/wells/BlackoilWellModelGeneric.cpp index 232a2cde4..fff177200 100644 --- a/opm/simulators/wells/BlackoilWellModelGeneric.cpp +++ b/opm/simulators/wells/BlackoilWellModelGeneric.cpp @@ -293,7 +293,9 @@ initializeWellPerfData() checker.connectionFound(connection_index); if (connection.state() != Connection::State::SHUT) { OPM_THROW(std::runtime_error, - "Connection state: " << Connection::State2String(connection.state()) << " not handled"); + "Connection state: " + + Connection::State2String(connection.state()) + + " not handled"); } } // Note: we rely on the connections being filtered! I.e. there are only connections