TimeStepControl: avoid use of sstream

This commit is contained in:
Arne Morten Kvarving 2023-01-02 15:21:42 +01:00
parent 527280ab28
commit 4abf4e6d38

View File

@ -51,10 +51,14 @@ namespace Opm
, verbose_( verbose )
{
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 ) {
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_));
}
}