From 6910396c17a42dda324d54471af6bdb5f4aa0bdb Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 24 Apr 2018 02:30:40 +0200 Subject: [PATCH] Add assertion for nonempty hp::FECollection --- source/hp/dof_handler.cc | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5