Add initalizer for adaptiveTimeStepper that uses values from TUNING

Some of the tuning values from the TUNING keywords is used to tune the
timestepping.
This commit is contained in:
Tor Harald Sandve
2016-09-28 09:59:50 +02:00
parent 815480d052
commit e034bbc7ad
2 changed files with 42 additions and 0 deletions

View File

@@ -45,6 +45,17 @@ namespace Opm {
AdaptiveTimeStepping( const parameter::ParameterGroup& param,
const bool terminal_output = true );
//! \brief contructor taking parameter object
//! \param tuning Pointer to ecl TUNING keyword
//! \param time_step current report step
//! \param param The parameter object
//! \param pinfo The information about the data distribution
//! and communication for a parallel run.
AdaptiveTimeStepping( const Tuning& tuning,
size_t time_step,
const parameter::ParameterGroup& param,
const bool terminal_output = true );
/** \brief step method that acts like the solver::step method
in a sub cycle of time steps
@@ -77,6 +88,8 @@ namespace Opm {
Solver& solver, State& state, WellState& well_state,
Output* outputWriter);
void init(const parameter::ParameterGroup& param);
typedef std::unique_ptr< TimeStepControlInterface > TimeStepControlType;
TimeStepControlType timeStepControl_; //!< time step control object