provide default for parameter group.

This commit is contained in:
Robert K 2014-10-22 15:00:10 +02:00
parent 937555bb3b
commit 2a7f951e25

View File

@ -299,7 +299,7 @@ namespace Opm
// adaptive time stepping
std::unique_ptr< AdaptiveTimeStepping > adaptiveTimeStepping;
const parameter::ParameterGroup& timeStepParam = param_.getGroup( "timestep" );
const parameter::ParameterGroup& timeStepParam = param_.getDefault( "timestep", param_ );
if( timeStepParam.getDefault("adaptive", bool(false) ) )
{
adaptiveTimeStepping.reset( new AdaptiveTimeStepping( timeStepParam ) );