mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
TimeStepControl: avoid use of sstream
This commit is contained in:
@@ -51,10 +51,14 @@ namespace Opm
|
|||||||
, verbose_( verbose )
|
, verbose_( verbose )
|
||||||
{
|
{
|
||||||
if( decayrate_ > 1.0 ) {
|
if( decayrate_ > 1.0 ) {
|
||||||
OPM_THROW(std::runtime_error,"SimpleIterationCountTimeStepControl: decay should be <= 1 " << decayrate_ );
|
OPM_THROW(std::runtime_error,
|
||||||
|
"SimpleIterationCountTimeStepControl: "
|
||||||
|
"decay should be <= 1 " + std::to_string(decayrate_));
|
||||||
}
|
}
|
||||||
if( growthrate_ < 1.0 ) {
|
if( growthrate_ < 1.0 ) {
|
||||||
OPM_THROW(std::runtime_error,"SimpleIterationCountTimeStepControl: growth should be >= 1 " << growthrate_ );
|
OPM_THROW(std::runtime_error,
|
||||||
|
"SimpleIterationCountTimeStepControl: "
|
||||||
|
"growth should be >= 1 " + std::to_string(growthrate_));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user