From: Daniel Arndt Date: Tue, 24 Apr 2018 00:30:40 +0000 (+0200) Subject: Add assertion for nonempty hp::FECollection X-Git-Tag: v9.0.0-rc1~120^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6910396c17a42dda324d54471af6bdb5f4aa0bdb;p=dealii.git Add assertion for nonempty hp::FECollection --- diff --git a/source/hp/dof_handler.cc b/source/hp/dof_handler.cc index 1e741dd7bd..adb43c610d 100644 --- a/source/hp/dof_handler.cc +++ b/source/hp/dof_handler.cc @@ -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(ff);