From cc856613faf96c1ae667c94686520dd31ff13072 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 18 Nov 2023 12:45:48 -0500 Subject: [PATCH] Small periodicity cleanups --- source/dofs/dof_tools_constraints.cc | 4 ++-- source/grid/grid_tools_dof_handlers.cc | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/dofs/dof_tools_constraints.cc b/source/dofs/dof_tools_constraints.cc index 76f2fa51e0..f8db073baf 100644 --- a/source/dofs/dof_tools_constraints.cc +++ b/source/dofs/dof_tools_constraints.cc @@ -2462,7 +2462,7 @@ namespace DoFTools if (face_1->has_children() && face_2->has_children()) { // In the case that both faces have children, we loop over all children - // and apply make_periodicty_constrains recursively: + // and apply make_periodicity_constraints() recursively: Assert(face_1->n_children() == GeometryInfo::max_children_per_face && @@ -2474,7 +2474,7 @@ namespace DoFTools ++i) { // Lookup the index for the second face - unsigned int j; + unsigned int j = numbers::invalid_unsigned_int; switch (dim) { case 2: diff --git a/source/grid/grid_tools_dof_handlers.cc b/source/grid/grid_tools_dof_handlers.cc index f847fb1966..186ffe1d36 100644 --- a/source/grid/grid_tools_dof_handlers.cc +++ b/source/grid/grid_tools_dof_handlers.cc @@ -2269,7 +2269,8 @@ namespace GridTools const unsigned int size_new = matched_pairs.size(); for (unsigned int i = size_old; i < size_new; ++i) { - Assert(matched_pairs[i].orientation == 1, + Assert(matched_pairs[i].orientation == + ReferenceCell::default_combined_face_orientation(), ExcMessage( "Found a face match with non standard orientation. " "This function is only suitable for meshes with cells " -- 2.39.5