Implement numTracers with embedded EclipseState

This commit is contained in:
Joakim Hove committed 2021-11-30 11:23:36 +01:00
1 parent d531dc01f9
commit e42e412054
2 files changed
+8 -2

No files matched your search

+7
View File
@@ -134,6 +134,13 @@ setTracerConcentration(int tracerIdx, int globalDofIdx, Scalar 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>
void EclGenericTracerModel<Grid,GridView,DofMapper,Stencil,Scalar>::
+1 -2
View File
@@ -55,8 +55,7 @@ public:
/*!
* \brief Return the number of tracers considered by the tracerModel.
*/
int numTracers() const
{ return tracerNames_.size(); }
int numTracers() const;
/*!
* \brief Return the tracer name