Skip to content
Snippets Groups Projects
Commit 005d4b14 authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[implicit] scvface gets its own local index

parent 03f45fa4
No related branches found
No related tags found
1 merge request!617[WIP] Next
...@@ -49,6 +49,7 @@ public: ...@@ -49,6 +49,7 @@ public:
const GlobalPosition& ipGlobal, const GlobalPosition& ipGlobal,
const GlobalPosition& unitOuterNormal, const GlobalPosition& unitOuterNormal,
IndexType scvfIndex, IndexType scvfIndex,
IndexType indexInElement,
const std::vector<IndexType>& scvIndices, const std::vector<IndexType>& scvIndices,
bool boundary = false) bool boundary = false)
: geometry_(geometry), : geometry_(geometry),
...@@ -56,6 +57,7 @@ public: ...@@ -56,6 +57,7 @@ public:
ipLocal_(geometry.local(ipGlobal)), ipLocal_(geometry.local(ipGlobal)),
unitOuterNormal_(unitOuterNormal), unitOuterNormal_(unitOuterNormal),
scvfIndex_(scvfIndex), scvfIndex_(scvfIndex),
indexInElement_(indexInElement),
scvIndices_(scvIndices), scvIndices_(scvIndices),
boundary_(boundary) {} boundary_(boundary) {}
...@@ -121,12 +123,19 @@ public: ...@@ -121,12 +123,19 @@ public:
return scvfIndex_; return scvfIndex_;
} }
//! The global index of this sub control volume face
IndexType indexInElement() const
{
return indexInElement_;
}
private: private:
Geometry geometry_; Geometry geometry_;
GlobalPosition ipGlobal_; GlobalPosition ipGlobal_;
LocalPosition ipLocal_; LocalPosition ipLocal_;
GlobalPosition unitOuterNormal_; GlobalPosition unitOuterNormal_;
IndexType scvfIndex_; IndexType scvfIndex_;
IndexType indexInElement_;
std::vector<IndexType> scvIndices_; std::vector<IndexType> scvIndices_;
bool boundary_; 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