Skip to content

Commit

Permalink
Changed to Scalar type.
Browse files Browse the repository at this point in the history
Following commit 61bfea4.
  • Loading branch information
svenn-t committed May 29, 2024
1 parent 5d302f9 commit 22fb218
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions opm/simulators/flow/GenericTracerModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ class GenericTracerModel {
*/
const std::map<std::pair<std::string, std::string>, Scalar>&
getWellTracerRates() const {return wellTracerRate_;}
const std::map<std::pair<std::string, std::string>, double>&
const std::map<std::pair<std::string, std::string>, Scalar>&
getWellFreeTracerRates() const {return wellFreeTracerRate_;}
const std::map<std::pair<std::string, std::string>, double>&
const std::map<std::pair<std::string, std::string>, Scalar>&
getWellSolTracerRates() const {return wellSolTracerRate_;}

template<class Serializer>
Expand Down Expand Up @@ -136,8 +136,8 @@ class GenericTracerModel {

// <wellName, tracerIdx> -> wellRate
std::map<std::pair<std::string, std::string>, Scalar> wellTracerRate_;
std::map<std::pair<std::string, std::string>, double> wellFreeTracerRate_;
std::map<std::pair<std::string, std::string>, double> wellSolTracerRate_;
std::map<std::pair<std::string, std::string>, Scalar> wellFreeTracerRate_;
std::map<std::pair<std::string, std::string>, Scalar> wellSolTracerRate_;
/// \brief Function returning the cell centers
std::function<std::array<double,dimWorld>(int)> centroids_;
};
Expand Down
2 changes: 1 addition & 1 deletion opm/simulators/flow/TracerModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ class TracerModel : public GenericTracerModel<GetPropType<TypeTag, Properties::G
this->wellSolTracerRate_[std::make_pair(eclWell.name(), this->wellsname(tr.idx_[tIdx]))] = 0.0;
}

std::vector<double> wtracer(tr.numTracer());
std::vector<Scalar> wtracer(tr.numTracer());
for (int tIdx = 0; tIdx < tr.numTracer(); ++tIdx) {
wtracer[tIdx] = this->currentConcentration_(eclWell, this->name(tr.idx_[tIdx]));
}
Expand Down

0 comments on commit 22fb218

Please sign in to comment.