mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-11 08:51:55 -06:00
WellContributions: avoid use of sstream
This commit is contained in:
parent
bcf64b4be8
commit
e25d77f705
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user