From d96b7193eeffbe15d2316eeab053beccbd56afa4 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Fri, 28 Oct 2016 09:03:29 +0200 Subject: [PATCH] Make it possible to set initial timestep Default is kept at -1.0. I.e. this PR does not change the current behaviour. --- opm/core/simulator/AdaptiveTimeStepping_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/core/simulator/AdaptiveTimeStepping_impl.hpp b/opm/core/simulator/AdaptiveTimeStepping_impl.hpp index f5f4a2dc..d6005dca 100644 --- a/opm/core/simulator/AdaptiveTimeStepping_impl.hpp +++ b/opm/core/simulator/AdaptiveTimeStepping_impl.hpp @@ -104,7 +104,7 @@ namespace Opm { , solver_restart_max_( param.getDefault("solver.restart", int(10) ) ) , solver_verbose_( param.getDefault("solver.verbose", bool(true) ) && terminal_output ) , timestep_verbose_( param.getDefault("timestep.verbose", bool(true) ) && terminal_output ) - , suggested_next_timestep_( -1.0 ) + , suggested_next_timestep_( unit::convert::from(param.getDefault("timestep.initial_timestep_in_days", -1.0 ), unit::day) ) , full_timestep_initially_( param.getDefault("full_timestep_initially", bool(false) ) ) { init(param);