mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
EclProblem: only create the eclWriter_ object once
thanks to [at]bska for catching this.
This commit is contained in:
parent
0ca788f2f7
commit
d5328fe69c
@ -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));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
Reference in New Issue
Block a user