]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add assertion for nonempty hp::FECollection
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 24 Apr 2018 00:30:40 +0000 (02:30 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 24 Apr 2018 10:42:35 +0000 (12:42 +0200)
source/hp/dof_handler.cc

index 1e741dd7bdc456ccefa36927029459c120c07c8a..adb43c610dc3dcc1f9ee1fcb5b1e30727c96274f 100644 (file)
@@ -1281,6 +1281,8 @@ namespace hp
                       "in the constructor before you can distribute DoFs."));
     Assert (tria->n_levels() > 0,
             ExcMessage("The Triangulation you are using is empty!"));
+    Assert (ff.size() > 0,
+            ExcMessage("The hp::FECollection given is empty!"));
 
     if (&fe_collection != &ff)
       fe_collection = hp::FECollection<dim, spacedim>(ff);

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.