mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-11 11:05:34 -06:00
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:
parent
2dfbb4ed82
commit
a7f177e35e
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user