mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
SimpleIterationCountTimeStepControl: add serialization support
This commit is contained in:
@@ -66,6 +66,12 @@ namespace Opm
|
||||
}
|
||||
}
|
||||
|
||||
SimpleIterationCountTimeStepControl
|
||||
SimpleIterationCountTimeStepControl::serializationTestObject()
|
||||
{
|
||||
return {1, 1.0, 2.0, true};
|
||||
}
|
||||
|
||||
double SimpleIterationCountTimeStepControl::
|
||||
computeTimeStepSize( const double dt, const int iterations, const RelativeChangeInterface& /* relativeChange */, const double /*simulationTimeElapsed */) const
|
||||
{
|
||||
@@ -86,6 +92,15 @@ namespace Opm
|
||||
return dtEstimate;
|
||||
}
|
||||
|
||||
bool SimpleIterationCountTimeStepControl::
|
||||
operator==(const SimpleIterationCountTimeStepControl& ctrl) const
|
||||
{
|
||||
return this->target_iterations_ == ctrl.target_iterations_ &&
|
||||
this->decayrate_ == ctrl.decayrate_ &&
|
||||
this->growthrate_ == ctrl.growthrate_ &&
|
||||
this->verbose_ == ctrl.verbose_;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
//
|
||||
// HardcodedTimeStepControl Implementation
|
||||
|
||||
Reference in New Issue
Block a user