Skip to content
Snippets Groups Projects
Commit eb4937a5 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[cc][globalVolVars] Provide volVars with same interface as box

*volVars(elementIdx, localIdx)
parent 8b2f6ef1
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!537Fix/global volvar cache for box
......@@ -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_; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment