From cd76816ea59d4bb0a0f56f730c375b26e745eeb8 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Fri, 19 Aug 2016 10:30:49 +0200 Subject: [PATCH] Stay in sync with changes in restartWriter in the eclipseState --- opm/autodiff/FlowMainEbos.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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).