From: heister Date: Tue, 30 Jul 2013 02:35:22 +0000 (+0000) Subject: throw when you create a FE_Q of degree 0 (otherwise we try to allocate a LOT of memory) X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6619411037c9e585b8a9d8eb12f726e942ff1b87;p=dealii-svn.git 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 --- 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