diff --git a/opm/autodiff/FlowMainEbos.hpp b/opm/autodiff/FlowMainEbos.hpp index 016af8596..0b2af6a5f 100644 --- a/opm/autodiff/FlowMainEbos.hpp +++ b/opm/autodiff/FlowMainEbos.hpp @@ -66,8 +66,8 @@ namespace Opm // Possibly override IOConfig setting (from deck) for how often RESTART files should get written to disk (every N report step) if (Base::param_.has("output_interval")) { const int output_interval = Base::param_.get("output_interval"); - IOConfigPtr ioConfig = Base::eclipse_state_->getIOConfig(); - ioConfig->overrideRestartWriteInterval(static_cast(output_interval)); + eclipse_state_->getRestartConfig().overrideRestartWriteInterval( size_t( output_interval ) ); + } // Possible to force initialization only behavior (NOSIM).