mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-04 13:36:57 -06:00
TimeStepControl: avoid use of sstream
This commit is contained in:
parent
527280ab28
commit
4abf4e6d38
@ -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_));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user