Skip to content

Commit 449dca8

Browse files
authored
Merge pull request #326 from dglaeser/fix/test-structured-grid
Fix: 3d grid connectivity on test structured grids
2 parents a3d1dc4 + 4e1bab5 commit 449dca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/grid/structured_grid.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class StructuredGrid {
111111
const auto incremented = [] (auto pos, int dir) { pos[dir]++; return pos; };
112112
std::vector point_ids{cell_pos};
113113
point_ids.push_back(incremented(cell_pos, 0));
114-
if constexpr (dim == 2) {
114+
if constexpr (dim > 1) {
115115
point_ids.push_back(incremented(incremented(cell_pos, 0), 1));
116116
point_ids.push_back(incremented(cell_pos, 1));
117117
}

0 commit comments

Comments
 (0)