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.
This commit is contained in:
Atgeirr Flø Rasmussen 2015-08-19 11:33:29 +02:00
parent a7f177e35e
commit 42464cbcb7

View File

@ -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") );