mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-24 22:57:42 -05:00
TimeStepControl: avoid use of sstream
This commit is contained in:
1 parent
527280ab28
commit
4abf4e6d38
1 file changed
+6
-2
@@ -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_));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user