From: Wolfgang Bangerth Date: Tue, 12 Dec 2023 07:10:08 +0000 (-0700) Subject: Only set direction flags in the codim-1 case. X-Git-Tag: relicensing~254^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16345%2Fhead;p=dealii.git Only set direction flags in the codim-1 case. --- 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);