diff --git a/opm/simulators/flow/GenericTracerModel.hpp b/opm/simulators/flow/GenericTracerModel.hpp index 02227cc8791..ada91bb5b85 100644 --- a/opm/simulators/flow/GenericTracerModel.hpp +++ b/opm/simulators/flow/GenericTracerModel.hpp @@ -85,9 +85,9 @@ class GenericTracerModel { */ const std::map, Scalar>& getWellTracerRates() const {return wellTracerRate_;} - const std::map, double>& + const std::map, Scalar>& getWellFreeTracerRates() const {return wellFreeTracerRate_;} - const std::map, double>& + const std::map, Scalar>& getWellSolTracerRates() const {return wellSolTracerRate_;} template @@ -136,8 +136,8 @@ class GenericTracerModel { // -> wellRate std::map, Scalar> wellTracerRate_; - std::map, double> wellFreeTracerRate_; - std::map, double> wellSolTracerRate_; + std::map, Scalar> wellFreeTracerRate_; + std::map, Scalar> wellSolTracerRate_; /// \brief Function returning the cell centers std::function(int)> centroids_; }; diff --git a/opm/simulators/flow/TracerModel.hpp b/opm/simulators/flow/TracerModel.hpp index c1b3b29a7ad..6443d8441eb 100644 --- a/opm/simulators/flow/TracerModel.hpp +++ b/opm/simulators/flow/TracerModel.hpp @@ -466,7 +466,7 @@ class TracerModel : public GenericTracerModelwellSolTracerRate_[std::make_pair(eclWell.name(), this->wellsname(tr.idx_[tIdx]))] = 0.0; } - std::vector wtracer(tr.numTracer()); + std::vector wtracer(tr.numTracer()); for (int tIdx = 0; tIdx < tr.numTracer(); ++tIdx) { wtracer[tIdx] = this->currentConcentration_(eclWell, this->name(tr.idx_[tIdx])); }