From 4a0bdc38e1b8500b69717640143801aec6b1b2e4 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 2 Jan 2023 15:17:49 +0100 Subject: [PATCH] ISTLSolverEbos: avoid use of sstream --- opm/simulators/linalg/ISTLSolverEbos.cpp | 5 +++-- opm/simulators/linalg/ISTLSolverEbos.hpp | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/opm/simulators/linalg/ISTLSolverEbos.cpp b/opm/simulators/linalg/ISTLSolverEbos.cpp index 7ddd8e77a..8eb3d0a94 100644 --- a/opm/simulators/linalg/ISTLSolverEbos.cpp +++ b/opm/simulators/linalg/ISTLSolverEbos.cpp @@ -106,8 +106,9 @@ std::function getWeightsCalculator(const PropertyTree& prm, weightsCalculator = trueFunc; } else { OPM_THROW(std::invalid_argument, - "Weights type " << weightsType << "not implemented for cpr." - << " Please use quasiimpes or trueimpes."); + "Weights type " + weightsType + + "not implemented for cpr." + " Please use quasiimpes or trueimpes."); } } return weightsCalculator; diff --git a/opm/simulators/linalg/ISTLSolverEbos.hpp b/opm/simulators/linalg/ISTLSolverEbos.hpp index d6329ec4e..878702f3c 100644 --- a/opm/simulators/linalg/ISTLSolverEbos.hpp +++ b/opm/simulators/linalg/ISTLSolverEbos.hpp @@ -339,8 +339,8 @@ std::unique_ptr blockJacobiAdjacency(const Grid& grid, } else { // Pointers should not change if ( &(M.istlMatrix()) != matrix_ ) { - OPM_THROW(std::logic_error, "Matrix objects are expected to be reused when reassembling!" - <<" old pointer was " << matrix_ << ", new one is " << (&M.istlMatrix()) ); + OPM_THROW(std::logic_error, + "Matrix objects are expected to be reused when reassembling!"); } } rhs_ = &b;