Commit 590ef1cb authored by Ansgar Burchardt's avatar Ansgar Burchardt

Merge branch 'cherry-pick-209a515c' into 'releases/2.5'

Merge branch 'fix-uggrid-vertex-reordering' into 'master'

See merge request !147
parents 27981955 df425567
Pipeline #1736 passed with stage
in 262 minutes
......@@ -326,8 +326,12 @@ createGrid()
// Copy the vertices into a C-style array
// We copy four vertices here even if the segment is a triangle -- it doesn't matter
int vertices_c_style[dimworld*2-2];
for (int j=0; j<dimworld*2-2; j++)
vertices_c_style[j] = boundarySegmentVertices_[i][j];
for (int j=0; j<dimworld*2-2; j++) {
// For parameterized boundary segments, -1 is used as a sentinel value
// for unused vertices and must be preserved.
const auto idx = boundarySegmentVertices_[i][j];
vertices_c_style[j] = idx == -1 ? -1 : isBoundaryNode[idx];
}
if (grid_->boundarySegments_[i]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment