Skip to content
Snippets Groups Projects
Commit 1028ed67 authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Fix writing quadrilateral faces, the index order in reference elements changed a while ago

parent b4111c30
Branches
Tags
No related merge requests found
......@@ -125,9 +125,9 @@ void writeBoundary(const BoundaryPatch<GridView>& surface, const std::string& fi
if (n==4)
fprintf(fp, " %d %d %d\n",
globalToLocal[indexSet.subIndex(inside, refElement.subEntity(it.indexInInside(), 1, 2, dim), dim)] + 1,
globalToLocal[indexSet.subIndex(inside, refElement.subEntity(it.indexInInside(), 1, 3, dim), dim)] + 1,
globalToLocal[indexSet.subIndex(inside, refElement.subEntity(it.indexInInside(), 1, 0, dim), dim)] + 1);
globalToLocal[indexSet.subIndex(inside, refElement.subEntity(it.indexInInside(), 1, 2, dim), dim)] + 1,
globalToLocal[indexSet.subIndex(inside, refElement.subEntity(it.indexInInside(), 1, 1, dim), dim)] + 1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment