adding command line option full_timestep_initially_

when the option is true, for each report step, the size of the adaptive
time step always beginning with the size of the report step.
This commit is contained in:
Kai Bao 2015-08-17 14:58:47 +02:00
parent 2dfbb4ed82
commit a7f177e35e
2 changed files with 6 additions and 0 deletions

View File

@ -87,6 +87,7 @@ namespace Opm {
const bool solver_verbose_; //!< solver verbosity
const bool timestep_verbose_; //!< timestep verbosity
double last_timestep_; //!< size of last timestep
bool full_timestep_initially_; //!< beginning with the size of the time step from data file
};
}

View File

@ -44,6 +44,7 @@ namespace Opm {
, solver_restart_max_( param.getDefault("solver.restart", int(10) ) )
, solver_verbose_( param.getDefault("solver.verbose", bool(true) ) )
, timestep_verbose_( param.getDefault("timestep.verbose", bool(true) ) )
, full_timestep_initially_( param.getDefault("full_timestep_initially", bool(false) ) )
, last_timestep_( -1.0 )
{
// valid are "pid" and "pid+iteration"
@ -105,6 +106,10 @@ namespace Opm {
last_timestep_ = restart_factor_ * timestep;
}
if (full_timestep_initially_) {
last_timestep_ = timestep;
}
// TODO
// take change in well state into account