Skip to content
Snippets Groups Projects
Commit 746b409f authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[staggered][fvElementGeometry] Use fixed index map for lateralOrthogonal scvf

parent fe2e313f
No related branches found
No related tags found
1 merge request!2901Feature/improve staggered gridgeometry
......@@ -79,7 +79,9 @@ public:
const SubControlVolumeFace& lateralOrthogonalScvf(const SubControlVolumeFace& scvf) const
{
assert(scvf.isLateral());
return gridGeometry().scvf(gridGeometry().lateralOrthogonalScvf(scvf));
const auto otherGlobalIdx = scvfIndices_()[GridGeometry::GeometryHelper::lateralOrthogonalScvfLocalIndex(scvf.localIndex())];
return gridGeometry().scvf(otherGlobalIdx);
}
//! Return the frontal sub control volume face on a the boundary for a given sub control volume
......
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