From 03c5c028aa8988875d1710f02f7b026e86f26d5d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 8 Jun 2021 10:24:20 -0600 Subject: [PATCH] Add missing assertions. --- source/fe/fe_simplex_p.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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()); } } -- 2.39.5