mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-25 20:26:26 -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_;
|
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user