Skip to content
Snippets Groups Projects
Commit 2f8664f2 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[box][gridvolvars] introduce [] operator for scv in case of caching

This is needed for compatibility with the new FvAssemblerBase class.
parent 5ece9477
No related branches found
No related tags found
1 merge request!734Feature/improve fvassembler
...@@ -86,6 +86,12 @@ public: ...@@ -86,6 +86,12 @@ public:
friend inline ElementVolumeVariables localView(const BoxGridVolumeVariables& global) friend inline ElementVolumeVariables localView(const BoxGridVolumeVariables& global)
{ return ElementVolumeVariables(global); } { return ElementVolumeVariables(global); }
const VolumeVariables& volVars(const SubControlVolume& scv) const
{ return volumeVariables_[scv.elementIndex()][scv.indexInElement()]; }
VolumeVariables& volVars(const SubControlVolume& scv)
{ return volumeVariables_[scv.elementIndex()][scv.indexInElement()]; }
const VolumeVariables& volVars(const IndexType eIdx, const IndexType scvIdx) const const VolumeVariables& volVars(const IndexType eIdx, const IndexType scvIdx) const
{ return volumeVariables_[eIdx][scvIdx]; } { return volumeVariables_[eIdx][scvIdx]; }
......
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