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:
Tor Harald Sandve committed 2015-09-03 12:52:47 +02:00
1 parent 3ddf2a7139
commit a765659d90
4 files changed
+7 -10

No files matched your search

-5
View File
@@ -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;
}