diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index e8517aeb3..e30048f45 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -779,7 +779,7 @@ public: MICPModule::initFromState(vanguard.eclState()); // create the ECL writer - eclWriter_.reset(new EclWriterType(simulator)); + eclWriter_ = std::make_unique(simulator); enableDriftCompensation_ = EWOMS_GET_PARAM(TypeTag, bool, EclEnableDriftCompensation);