mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add function to set tracer concentration in a cell
This commit is contained in:
parent
e7b6a6558b
commit
5aede81b99
@ -126,6 +126,15 @@ tracerConcentration(int tracerIdx, int globalDofIdx) const
|
||||
return tracerConcentration_[tracerIdx][globalDofIdx];
|
||||
}
|
||||
|
||||
|
||||
template<class Grid,class GridView, class DofMapper, class Stencil, class Scalar>
|
||||
void EclGenericTracerModel<Grid,GridView,DofMapper,Stencil,Scalar>::
|
||||
setTracerConcentration(int tracerIdx, int globalDofIdx, Scalar value)
|
||||
{
|
||||
this->tracerConcentration_[tracerIdx][globalDofIdx] = value;
|
||||
}
|
||||
|
||||
|
||||
template<class Grid,class GridView, class DofMapper, class Stencil, class Scalar>
|
||||
void EclGenericTracerModel<Grid,GridView,DofMapper,Stencil,Scalar>::
|
||||
doInit(bool enabled, size_t numGridDof,
|
||||
|
@ -67,6 +67,7 @@ public:
|
||||
* \brief Return the tracer concentration for tracer index and global DofIdx
|
||||
*/
|
||||
Scalar tracerConcentration(int tracerIdx, int globalDofIdx) const;
|
||||
void setTracerConcentration(int tracerIdx, int globalDofIdx, Scalar value);
|
||||
|
||||
/*!
|
||||
* \brief Return well tracer rates
|
||||
|
Loading…
Reference in New Issue
Block a user