WellContributions: avoid use of sstream

This commit is contained in:
Arne Morten Kvarving 2023-01-02 15:17:49 +01:00
parent bcf64b4be8
commit e25d77f705

View File

@ -96,9 +96,11 @@ void WellContributions::setBlockSize(unsigned int dim_, unsigned int dim_wells_)
dim_wells = dim_wells_; dim_wells = dim_wells_;
if(dim != 3 || dim_wells != 4){ if(dim != 3 || dim_wells != 4){
std::ostringstream oss; OPM_THROW(std::logic_error,
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"; "WellContributions::setBlockSize error: "
OPM_THROW(std::logic_error, oss.str()); "dim and dim_wells must be equal to 3 and 4, "
"respectively, otherwise the add well contributions "
"kernel won't work.\n");
} }
} }