BlackoilWellModelGeneric: avoid use of sstream

This commit is contained in:
Arne Morten Kvarving 2023-01-02 15:24:16 +01:00
parent 17d54c1416
commit 99e5dab134

View File

@ -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