From: Wolfgang Bangerth Date: Tue, 8 Jun 2021 16:24:20 +0000 (-0600) Subject: Add missing assertions. X-Git-Tag: v9.4.0-rc1~1255^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12413%2Fhead;p=dealii.git Add missing assertions. --- diff --git a/source/fe/fe_simplex_p.cc b/source/fe/fe_simplex_p.cc index ca7851bbc6..442cbd9125 100644 --- a/source/fe/fe_simplex_p.cc +++ b/source/fe/fe_simplex_p.cc @@ -35,8 +35,6 @@ namespace std::vector get_dpo_vector_fe_p(const unsigned int dim, const unsigned int degree) { - Assert(degree == 1 || degree == 2, ExcNotImplemented()); - switch (dim) { case 1: @@ -46,6 +44,8 @@ namespace return {1, 0}; case 2: return {1, 1}; + default: + Assert(false, ExcNotImplemented()); } case 2: switch (degree) @@ -54,6 +54,8 @@ namespace return {1, 0, 0}; case 2: return {1, 1, 0}; + default: + Assert(false, ExcNotImplemented()); } case 3: switch (degree) @@ -62,6 +64,8 @@ namespace return {1, 0, 0, 0}; case 2: return {1, 1, 0, 0}; + default: + Assert(false, ExcNotImplemented()); } }