EclProblem: only create the eclWriter_ object once

thanks to [at]bska for catching this.
This commit is contained in:
Andreas Lauser 2018-09-29 10:57:47 +02:00
parent 0ca788f2f7
commit d5328fe69c

View File

@ -485,8 +485,6 @@ public:
, transmissibilities_(simulator.vanguard()) , transmissibilities_(simulator.vanguard())
, thresholdPressures_(simulator) , thresholdPressures_(simulator)
, wellModel_(simulator) , wellModel_(simulator)
, eclWriter_(EWOMS_GET_PARAM(TypeTag, bool, EnableEclOutput)
? new EclWriterType(simulator) : nullptr)
, pffDofData_(simulator.gridView(), this->elementMapper()) , pffDofData_(simulator.gridView(), this->elementMapper())
{ {
// Tell the black-oil extensions to initialize their internal data structures // Tell the black-oil extensions to initialize their internal data structures
@ -496,7 +494,6 @@ public:
if (EWOMS_GET_PARAM(TypeTag, bool, EnableEclOutput)) if (EWOMS_GET_PARAM(TypeTag, bool, EnableEclOutput))
// create the ECL writer // create the ECL writer
eclWriter_.reset(new EclWriterType(simulator)); eclWriter_.reset(new EclWriterType(simulator));
} }
/*! /*!