]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add an assertion.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 29 Jan 2012 22:11:07 +0000 (22:11 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 29 Jan 2012 22:11:07 +0000 (22:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@24951 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe_system.cc

index d2f015ee48e149f0ca6e07778e7e865e954a9f7e..74d0e006150ea4b99c76f2e95fffc75b3d68d741 100644 (file)
@@ -320,6 +320,8 @@ FESystem<dim,spacedim>::FESystem (
 {
   Assert (fes.size() == multiplicities.size(),
          ExcDimensionMismatch (fes.size(), multiplicities.size()) );
+  Assert (fes.size() > 0,
+         ExcMessage ("Need to pass at least one finite element."));
 
   this->base_to_block_indices.reinit(0, 0);
 

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.