mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-07-07 04:53:03 -05:00
GenericTracerModel: use Scalar type
This commit is contained in:
parent
bf93915101
commit
61bfea46c7
|
@ -77,7 +77,7 @@ public:
|
|||
/*!
|
||||
* \brief Return well tracer rates
|
||||
*/
|
||||
const std::map<std::pair<std::string, std::string>, double>&
|
||||
const std::map<std::pair<std::string, std::string>, Scalar>&
|
||||
getWellTracerRates() const {return wellTracerRate_;}
|
||||
|
||||
template<class Serializer>
|
||||
|
@ -105,9 +105,11 @@ protected:
|
|||
|
||||
bool linearSolve_(const TracerMatrix& M, TracerVector& x, TracerVector& b);
|
||||
|
||||
bool linearSolveBatchwise_(const TracerMatrix& M, std::vector<TracerVector>& x, std::vector<TracerVector>& b);
|
||||
bool linearSolveBatchwise_(const TracerMatrix& M,
|
||||
std::vector<TracerVector>& x,
|
||||
std::vector<TracerVector>& b);
|
||||
|
||||
double currentConcentration_(const Well& eclWell, const std::string& name) const;
|
||||
Scalar currentConcentration_(const Well& eclWell, const std::string& name) const;
|
||||
|
||||
const GridView& gridView_;
|
||||
const EclipseState& eclState_;
|
||||
|
@ -120,7 +122,7 @@ protected:
|
|||
std::vector<Dune::BlockVector<Dune::FieldVector<Scalar, 1>>> storageOfTimeIndex1_;
|
||||
|
||||
// <wellName, tracerIdx> -> wellRate
|
||||
std::map<std::pair<std::string, std::string>, double> wellTracerRate_;
|
||||
std::map<std::pair<std::string, std::string>, Scalar> wellTracerRate_;
|
||||
/// \brief Function returning the cell centers
|
||||
std::function<std::array<double,dimWorld>(int)> centroids_;
|
||||
};
|
||||
|
|
|
@ -144,7 +144,7 @@ fname(int tracerIdx) const
|
|||
}
|
||||
|
||||
template<class Grid,class GridView, class DofMapper, class Stencil, class Scalar>
|
||||
double GenericTracerModel<Grid,GridView,DofMapper,Stencil,Scalar>::
|
||||
Scalar GenericTracerModel<Grid,GridView,DofMapper,Stencil,Scalar>::
|
||||
currentConcentration_(const Well& eclWell, const std::string& name) const
|
||||
{
|
||||
return eclWell.getTracerProperties().getConcentration(name);
|
||||
|
|
Loading…
Reference in New Issue
Block a user