]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add an assert
authorMatthias Maier <tamiko@43-1.org>
Thu, 31 Aug 2017 16:24:14 +0000 (11:24 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 31 Aug 2017 18:04:18 +0000 (13:04 -0500)
source/fe/fe_system.cc

index 10d8fd1c95245966723872b29f5a794a2e9dbf54..95dc9b50782bbe6ad807fef1f74f225e9e740811 100644 (file)
@@ -1636,6 +1636,21 @@ void FESystem<dim,spacedim>::initialize (const std::vector<const FiniteElement<d
               }
           }
       }
+
+#ifdef DEBUG
+    // check generalized_support_points_index_table for consistency
+    for (unsigned int i = 0; i < base_elements.size(); ++i)
+      {
+        const auto &points =
+          base_elements[i].first->get_generalized_support_points();
+        for (unsigned int j = 0; j < points.size(); ++j)
+          {
+            const auto n = generalized_support_points_index_table[i][j];
+            Assert(this->generalized_support_points[n] == points[j],
+                   ExcInternalError());
+          }
+      }
+#endif /* DEBUG */
   });
 
   // initialize quad dof index permutation in 3d and higher

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.