We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a3d1dc4 + 4e1bab5 commit 449dca8Copy full SHA for 449dca8
test/grid/structured_grid.hpp
@@ -111,7 +111,7 @@ class StructuredGrid {
111
const auto incremented = [] (auto pos, int dir) { pos[dir]++; return pos; };
112
std::vector point_ids{cell_pos};
113
point_ids.push_back(incremented(cell_pos, 0));
114
- if constexpr (dim == 2) {
+ if constexpr (dim > 1) {
115
point_ids.push_back(incremented(incremented(cell_pos, 0), 1));
116
point_ids.push_back(incremented(cell_pos, 1));
117
}
0 commit comments