From 13d443473e43be866ae3b1145bf09c81b854d3ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Wed, 19 Aug 2015 11:33:29 +0200 Subject: [PATCH] Match init order to member order. In a constructor initialisation list, the order should be the same as the order in which the variables actually are initialised, which is given by the order they are declared in the class and not by the order in the initialisation list. --- 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 3ca9a3c6..2fa6bd99 100644 --- a/opm/core/simulator/AdaptiveTimeStepping_impl.hpp +++ b/opm/core/simulator/AdaptiveTimeStepping_impl.hpp @@ -44,8 +44,8 @@ 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 ) + , full_timestep_initially_( param.getDefault("full_timestep_initially", bool(false) ) ) { // valid are "pid" and "pid+iteration" std::string control = param.getDefault("timestep.control", std::string("pid+iteration") );