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
Loading
......@@ -49,6 +49,7 @@ public:
const GlobalPosition& ipGlobal,
const GlobalPosition& unitOuterNormal,
IndexType scvfIndex,
IndexType indexInElement,
const std::vector<IndexType>& scvIndices,
bool boundary = false)
: geometry_(geometry),
......@@ -56,6 +57,7 @@ public:
ipLocal_(geometry.local(ipGlobal)),
unitOuterNormal_(unitOuterNormal),
scvfIndex_(scvfIndex),
indexInElement_(indexInElement),
scvIndices_(scvIndices),
boundary_(boundary) {}
......@@ -121,12 +123,19 @@ public:
return scvfIndex_;
}
//! The global index of this sub control volume face
IndexType indexInElement() const
{
return indexInElement_;
}
private:
Geometry geometry_;
GlobalPosition ipGlobal_;
LocalPosition ipLocal_;
GlobalPosition unitOuterNormal_;
IndexType scvfIndex_;
IndexType indexInElement_;
std::vector<IndexType> scvIndices_;
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