From 6619411037c9e585b8a9d8eb12f726e942ff1b87 Mon Sep 17 00:00:00 2001 From: heister Date: Tue, 30 Jul 2013 02:35:22 +0000 Subject: [PATCH] throw when you create a FE_Q of degree 0 (otherwise we try to allocate a LOT of memory) git-svn-id: https://svn.dealii.org/trunk@30179 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/fe/fe_q_base.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/deal.II/source/fe/fe_q_base.cc b/deal.II/source/fe/fe_q_base.cc index 77aab44e1a..9cae5f3dc4 100644 --- a/deal.II/source/fe/fe_q_base.cc +++ b/deal.II/source/fe/fe_q_base.cc @@ -993,6 +993,7 @@ template std::vector FE_Q_Base::get_dpo_vector(const unsigned int deg) { + AssertThrow(deg>0,ExcMessage("FE_Q needs to be of degree > 0.")); std::vector dpo(dim+1, 1U); for (unsigned int i=1; i