From: Wolfgang Bangerth Date: Sat, 14 Jan 2017 05:17:52 +0000 (-0700) Subject: Add a few assertions to FETools::compute_node_matrix(). X-Git-Tag: v8.5.0-rc1~243^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3796%2Fhead;p=dealii.git Add a few assertions to FETools::compute_node_matrix(). --- diff --git a/source/fe/fe_tools.cc b/source/fe/fe_tools.cc index ddeb7db4c1..7716e50d86 100644 --- a/source/fe/fe_tools.cc +++ b/source/fe/fe_tools.cc @@ -1621,6 +1621,7 @@ namespace FETools Assert (fe.has_generalized_support_points(), ExcNotInitialized()); Assert (N.n()==n_dofs, ExcDimensionMismatch(N.n(), n_dofs)); Assert (N.m()==n_dofs, ExcDimensionMismatch(N.m(), n_dofs)); + Assert (fe.n_components() == dim, ExcNotImplemented()); const std::vector > &points = fe.get_generalized_support_points(); @@ -1642,14 +1643,24 @@ namespace FETools // yield identity. for (unsigned int i=0; i