diff --git a/dumux/discretization/cellcentered/globalvolumevariables.hh b/dumux/discretization/cellcentered/globalvolumevariables.hh index 8a9b9a78833b6a1db0c11303e52eaaf09c1dd982..b70f940cf0367dc5470648f1eaa845a5b0cde812 100644 --- a/dumux/discretization/cellcentered/globalvolumevariables.hh +++ b/dumux/discretization/cellcentered/globalvolumevariables.hh @@ -124,6 +124,15 @@ public: VolumeVariables& volVars(const SubControlVolume scv) { return volumeVariables_[scv.dofIndex()]; } + + // required for compatibility with the box method + const VolumeVariables& volVars(const IndexType scvIdx, const IndexType localIdx) const + { return volumeVariables_[scvIdx]; } + + // required for compatibility with the box method + VolumeVariables& volVars(const IndexType scvIdx, const IndexType localIdx) + { return volumeVariables_[scvIdx]; } + private: const Problem& problem_() const { return *problemPtr_; }