Skip to content
Snippets Groups Projects
Commit 3fb8f0df authored by Kilian Weishaupt's avatar Kilian Weishaupt Committed by Timo Koch
Browse files

[staggeredGrid][scvFace] Add local index of face

parent 81684dc7
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!370Feature/staggered grid
...@@ -103,6 +103,7 @@ public: ...@@ -103,6 +103,7 @@ public:
selfToOppositeDistance_ = geometryHelper.selfToOppositeDistance(); selfToOppositeDistance_ = geometryHelper.selfToOppositeDistance();
pairData_ = geometryHelper.pairData(); pairData_ = geometryHelper.pairData();
localFaceIdx_ = is.indexInInside();
} }
/*//! The copy constrcutor /*//! The copy constrcutor
...@@ -202,6 +203,12 @@ public: ...@@ -202,6 +203,12 @@ public:
return oppositeIdx_; return oppositeIdx_;
} }
//! The local index of this sub control volume face
IndexType localFaceIdx() const
{
return localFaceIdx_;
}
//! The global index of this sub control volume face //! The global index of this sub control volume face
Scalar selfToOppositeDistance() const Scalar selfToOppositeDistance() const
{ {
...@@ -234,6 +241,7 @@ private: ...@@ -234,6 +241,7 @@ private:
Scalar selfToOppositeDistance_; Scalar selfToOppositeDistance_;
std::vector<StaggeredSubFace> subfaces_; std::vector<StaggeredSubFace> subfaces_;
std::array<PairData<Scalar>, numPairs> pairData_; std::array<PairData<Scalar>, numPairs> pairData_;
int localFaceIdx_;
}; };
......
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