diff --git a/opm/simulators/flow/GenericTracerModel.hpp b/opm/simulators/flow/GenericTracerModel.hpp index ac954be18b..a026856a0c 100644 --- a/opm/simulators/flow/GenericTracerModel.hpp +++ b/opm/simulators/flow/GenericTracerModel.hpp @@ -138,7 +138,9 @@ protected: std::vector& x, std::vector& b); - Scalar currentConcentration_(const Well& eclWell, const std::string& name) const; + Scalar currentConcentration_(const Well& eclWell, + const std::string& trName, + const SummaryState& summaryState) const; //! \brief Tracer type index enum TracerTypeIdx { diff --git a/opm/simulators/flow/GenericTracerModel_impl.hpp b/opm/simulators/flow/GenericTracerModel_impl.hpp index 07e26e8587..0f25f891b9 100644 --- a/opm/simulators/flow/GenericTracerModel_impl.hpp +++ b/opm/simulators/flow/GenericTracerModel_impl.hpp @@ -208,9 +208,11 @@ enableSolTracers() const template Scalar GenericTracerModel:: -currentConcentration_(const Well& eclWell, const std::string& name) const +currentConcentration_(const Well& eclWell, const std::string& trName, const SummaryState& summaryState) const { - return eclWell.getTracerProperties().getConcentration(name); + return eclWell.getTracerProperties().getConcentration(WellTracerProperties::Well { eclWell.name() }, + WellTracerProperties::Tracer { trName }, + summaryState); } template diff --git a/opm/simulators/flow/TracerModel.hpp b/opm/simulators/flow/TracerModel.hpp index c89379c5a7..662995b7ce 100644 --- a/opm/simulators/flow/TracerModel.hpp +++ b/opm/simulators/flow/TracerModel.hpp @@ -463,7 +463,8 @@ protected: std::vector wtracer(tr.numTracer()); for (int tIdx = 0; tIdx < tr.numTracer(); ++tIdx) { - wtracer[tIdx] = this->currentConcentration_(eclWell, this->name(tr.idx_[tIdx])); + wtracer[tIdx] = this->currentConcentration_(eclWell, this->name(tr.idx_[tIdx]), + simulator_.problem().wellModel().summaryState()); } const Scalar dt = simulator_.timeStepSize();