]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Small periodicity cleanups
authorDavid Wells <drwells@email.unc.edu>
Sat, 18 Nov 2023 17:45:48 +0000 (12:45 -0500)
committerDavid Wells <drwells@email.unc.edu>
Sat, 18 Nov 2023 17:45:48 +0000 (12:45 -0500)
source/dofs/dof_tools_constraints.cc
source/grid/grid_tools_dof_handlers.cc

index 76f2fa51e0bbef433ff3e4986856141b7716fd2a..f8db073bafafafaf906d81f398a6f80a5c0986b8 100644 (file)
@@ -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<dim>::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:
index f847fb19664274ab49b49a4300828fad1d06db4b..186ffe1d362a4f30fc492a87d69ba7ce4d742644 100644 (file)
@@ -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 "

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.