Skip to content
Snippets Groups Projects
Commit 9d2f3c46 authored by Timo Koch's avatar Timo Koch
Browse files

[scvf] Add global index of the scvf to itself

parent 368917ee
No related branches found
No related tags found
1 merge request!617[WIP] Next
......@@ -44,11 +44,13 @@ class SubControlVolumeFace
public:
SubControlVolumeFace(const Geometry& geometry,
const GlobalPosition& unitOuterNormal,
IndexType scvfIndex,
const std::vector<IndexType>& scvIndices,
const std::vector<IndexType>& volVarsIndices,
bool boundary = false)
: geometry_(geometry),
unitOuterNormal_(unitOuterNormal),
scvfIndex_(scvfIndex),
scvIndices_(scvIndices),
volVarsIndices_(volVarsIndices),
boundary_(boundary) {}
......@@ -108,9 +110,16 @@ public:
return volVarsIndices_[1];
}
//! The global index of this sub control volume face
IndexType index() const
{
return scvfIndex_;
}
private:
Geometry geometry_;
GlobalPosition unitOuterNormal_;
IndexType scvfIndex_;
std::vector<IndexType> scvIndices_, volVarsIndices_;
bool boundary_;
};
......
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