]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Replace exception by more verbose type
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Nov 2010 17:02:40 +0000 (17:02 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Nov 2010 17:02:40 +0000 (17:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@22793 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe.cc

index b45135b67041f8e7188671e3eef09e0d8acdb133..a89db5320a9f75d60b757fe7aabd78d5922647f5 100644 (file)
@@ -165,8 +165,7 @@ FiniteElement<dim,spacedim>::FiniteElement (
   Assert (restriction_is_additive_flags.size() == this->dofs_per_cell,
          ExcDimensionMismatch(restriction_is_additive_flags.size(),
                               this->dofs_per_cell));
-  Assert (nonzero_components.size() == this->dofs_per_cell,
-         ExcInternalError());
+  AssertDimension (nonzero_components.size(), this->dofs_per_cell);
   for (unsigned int i=0; i<nonzero_components.size(); ++i)
     {
       Assert (nonzero_components[i].size() == this->n_components(),

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.