]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix CellAccessor::neighbor_child_on_subface() 12980/head
authorPeter Munch <peterrmuench@gmail.com>
Mon, 22 Nov 2021 10:32:36 +0000 (11:32 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Mon, 22 Nov 2021 10:32:36 +0000 (11:32 +0100)
include/deal.II/grid/reference_cell.h
source/grid/tria_accessor.cc

index d34ccd09e49c6414131ce65e1bbc567da02d1301..4dfe657f563fbf176a0045787f6e33b56405fc42 100644 (file)
@@ -1104,7 +1104,7 @@ ReferenceCell::child_cell_on_face(
       const bool face_rotation    = Utilities::get_bit(face_orientation_raw, 1);
 
       return GeometryInfo<2>::child_cell_on_face(
-        RefinementCase<2>(RefinementPossibilities<2>::no_refinement),
+        RefinementCase<2>(RefinementPossibilities<2>::isotropic_refinement),
         face,
         subface,
         face_orientation,
@@ -1130,7 +1130,7 @@ ReferenceCell::child_cell_on_face(
       const bool face_rotation    = Utilities::get_bit(face_orientation_raw, 1);
 
       return GeometryInfo<3>::child_cell_on_face(
-        RefinementCase<3>(RefinementPossibilities<3>::no_refinement),
+        RefinementCase<3>(RefinementPossibilities<3>::isotropic_refinement),
         face,
         subface,
         face_orientation,
index fd7dac0727ca323b257c9820174dcedc461d0666..a9a8655462ceb8429ddb109010fc30eb2f79d038 100644 (file)
@@ -2894,8 +2894,8 @@ CellAccessor<dim, spacedim>::neighbor_child_on_subface(
                   subface;
 
               const unsigned int neighbor_child_index =
-                ReferenceCells::Triangle.child_cell_on_face(neighbor_face,
-                                                            neighbor_subface);
+                neighbor_cell->reference_cell().child_cell_on_face(
+                  neighbor_face, neighbor_subface);
               const TriaIterator<CellAccessor<dim, spacedim>> sub_neighbor =
                 neighbor_cell->child(neighbor_child_index);
 

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.