From d5328fe69cd3c334cfb9b7e14f651084f545592a Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Sat, 29 Sep 2018 10:57:47 +0200 Subject: [PATCH] EclProblem: only create the eclWriter_ object once thanks to [at]bska for catching this. --- ebos/eclproblem.hh | 3 --- 1 file changed, 3 deletions(-) diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index ce409297d..7fe20cd16 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -485,8 +485,6 @@ public: , transmissibilities_(simulator.vanguard()) , thresholdPressures_(simulator) , wellModel_(simulator) - , eclWriter_(EWOMS_GET_PARAM(TypeTag, bool, EnableEclOutput) - ? new EclWriterType(simulator) : nullptr) , pffDofData_(simulator.gridView(), this->elementMapper()) { // Tell the black-oil extensions to initialize their internal data structures @@ -496,7 +494,6 @@ public: if (EWOMS_GET_PARAM(TypeTag, bool, EnableEclOutput)) // create the ECL writer eclWriter_.reset(new EclWriterType(simulator)); - } /*!