mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-02 12:36:54 -06:00
provide default for parameter group.
This commit is contained in:
parent
937555bb3b
commit
2a7f951e25
@ -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 ) );
|
||||
|
Loading…
Reference in New Issue
Block a user