Implement numTracers with embedded EclipseState

This commit is contained in:
Joakim Hove
2021-11-26 17:20:40 +01:00
parent d531dc01f9
commit e42e412054
2 changed files with 8 additions and 2 deletions

View File

@@ -134,6 +134,13 @@ setTracerConcentration(int tracerIdx, int globalDofIdx, Scalar value)
this->tracerConcentration_[tracerIdx][globalDofIdx] = value; this->tracerConcentration_[tracerIdx][globalDofIdx] = value;
} }
template<class Grid,class GridView, class DofMapper, class Stencil, class Scalar>
int EclGenericTracerModel<Grid,GridView,DofMapper,Stencil,Scalar>::
numTracers() const
{
return this->eclState_.tracer().size();
}
template<class Grid,class GridView, class DofMapper, class Stencil, class Scalar> template<class Grid,class GridView, class DofMapper, class Stencil, class Scalar>
void EclGenericTracerModel<Grid,GridView,DofMapper,Stencil,Scalar>:: void EclGenericTracerModel<Grid,GridView,DofMapper,Stencil,Scalar>::

View File

@@ -55,8 +55,7 @@ public:
/*! /*!
* \brief Return the number of tracers considered by the tracerModel. * \brief Return the number of tracers considered by the tracerModel.
*/ */
int numTracers() const int numTracers() const;
{ return tracerNames_.size(); }
/*! /*!
* \brief Return the tracer name * \brief Return the tracer name