changed: do not hold on to a reference in TracerContainer

instead pass TracerConfig reference to relevant member functions
This commit is contained in:
Arne Morten Kvarving committed 2025-02-27 12:02:11 +01:00
1 parent 3ab289f14c
commit ec32790e73
3 files changed
+12 -17

No files matched your search

@@ -125,7 +125,6 @@ GenericOutputBlackoilModule(const EclipseState& eclState,
, enableSaltPrecipitation_(enableSaltPrecipitation)
, enableExtbo_(enableExtbo)
, enableMICP_(enableMICP)
, tracerC_(eclState_)
, flowsC_(schedule, summaryConfig)
, rftC_(eclState_, schedule_,
[this](const std::string& wname)
@@ -481,7 +480,7 @@ assignToSolution(data::Solution& sol)
this->fipC_.outputRestart(sol);
// Tracers
this->tracerC_.outputRestart(sol);
this->tracerC_.outputRestart(sol, eclState_.tracer());
}
template<class FluidSystem>
@@ -915,7 +914,7 @@ doAllocBuffers(const unsigned bufferSize,
}
// tracers
this->tracerC_.allocate(bufferSize);
this->tracerC_.allocate(bufferSize, eclState_.tracer());
//Warn for any unhandled keyword
if (log) {