mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
Limit the timestep growth for all timestepping algorithm
The time step restriction is moved to AdaptiveTimeStepping_impl.hpp to make it apply to all time-stepping algorithms.
This commit is contained in:
@@ -169,12 +169,10 @@ namespace Opm
|
||||
PIDAndIterationCountTimeStepControl::
|
||||
PIDAndIterationCountTimeStepControl( const int target_iterations,
|
||||
const double tol,
|
||||
const double maxgrowth,
|
||||
const boost::any& pinfo,
|
||||
const bool verbose)
|
||||
: BaseType( tol, pinfo, verbose )
|
||||
, target_iterations_( target_iterations )
|
||||
, maxgrowth_( maxgrowth )
|
||||
{}
|
||||
|
||||
double PIDAndIterationCountTimeStepControl::
|
||||
@@ -189,9 +187,6 @@ namespace Opm
|
||||
dtEstimate *= double( target_iterations_ ) / double(iterations);
|
||||
}
|
||||
|
||||
// limit the growth of the timestep size by the growth factor
|
||||
dtEstimate = std::min( dtEstimate, double(maxgrowth_ * dt) );
|
||||
|
||||
return dtEstimate;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user