From e25d77f7054c36ebe9c618943edf21721ebebf40 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 2 Jan 2023 15:17:49 +0100 Subject: [PATCH] WellContributions: avoid use of sstream --- opm/simulators/linalg/bda/WellContributions.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/opm/simulators/linalg/bda/WellContributions.cpp b/opm/simulators/linalg/bda/WellContributions.cpp index 34898da0c..bd3011c6f 100644 --- a/opm/simulators/linalg/bda/WellContributions.cpp +++ b/opm/simulators/linalg/bda/WellContributions.cpp @@ -96,9 +96,11 @@ void WellContributions::setBlockSize(unsigned int dim_, unsigned int dim_wells_) dim_wells = dim_wells_; if(dim != 3 || dim_wells != 4){ - std::ostringstream oss; - oss << "WellContributions::setBlockSize error: dim and dim_wells must be equal to 3 and 4, repectivelly, otherwise the add well contributions kernel won't work.\n"; - OPM_THROW(std::logic_error, oss.str()); + OPM_THROW(std::logic_error, + "WellContributions::setBlockSize error: " + "dim and dim_wells must be equal to 3 and 4, " + "respectively, otherwise the add well contributions " + "kernel won't work.\n"); } }