]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not query direction flags for Triangulation<1,3> objects. 16344/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 12 Dec 2023 07:07:08 +0000 (00:07 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 12 Dec 2023 07:07:08 +0000 (00:07 -0700)
source/fe/fe_values_base.cc

index 1976ced6276eeb777fb58ead11f62ae0b60dc688..5ef400f6c3825e4e56ca1210edfa858dea7c58ef 100644 (file)
@@ -1440,7 +1440,7 @@ FEValuesBase<dim, spacedim>::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<const typename Triangulation<dim, spacedim>::cell_iterator
                         &>(this->present_cell)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.