From 2fd234ddc071ce516d7ea8ac4c84bfcba37cf0cd Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 12 Dec 2023 00:10:08 -0700 Subject: [PATCH] Only set direction flags in the codim-1 case. --- source/grid/tria.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/grid/tria.cc b/source/grid/tria.cc index de285dca22..83b6a244dc 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -12682,7 +12682,7 @@ void Triangulation::create_triangulation( more readable. */ - if (dim < spacedim && all_reference_cells_are_hyper_cube()) + if ((dim == spacedim - 1) && all_reference_cells_are_hyper_cube()) { Table<2, bool> correct(GeometryInfo::faces_per_cell, GeometryInfo::faces_per_cell); -- 2.39.5