From f6fed0f1cb379a3fe664921ddc4575fde4a6108f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 12 Dec 2023 00:07:08 -0700 Subject: [PATCH] Do not query direction flags for Triangulation<1,3> objects. --- source/fe/fe_values_base.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fe/fe_values_base.cc b/source/fe/fe_values_base.cc index 1976ced627..5ef400f6c3 100644 --- a/source/fe/fe_values_base.cc +++ b/source/fe/fe_values_base.cc @@ -1440,7 +1440,7 @@ FEValuesBase::check_cell_similarity( CellSimilarity::translation : CellSimilarity::none); - if ((dim < spacedim) && (cell_similarity == CellSimilarity::translation)) + if ((dim == spacedim - 1) && (cell_similarity == CellSimilarity::translation)) { if (static_cast::cell_iterator &>(this->present_cell) -- 2.39.5