From: Matthias Maier Date: Thu, 31 Aug 2017 16:24:14 +0000 (-0500) Subject: Add an assert X-Git-Tag: v9.0.0-rc1~1140^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a92f763c6d97bf93f0e7fac03f8a4be2461b5a8;p=dealii.git Add an assert --- diff --git a/source/fe/fe_system.cc b/source/fe/fe_system.cc index 10d8fd1c95..95dc9b5078 100644 --- a/source/fe/fe_system.cc +++ b/source/fe/fe_system.cc @@ -1636,6 +1636,21 @@ void FESystem::initialize (const std::vectorget_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