From 9a34612432688e88e0767ab99be252ca809decfe Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Tue, 15 Oct 2024 10:13:23 +0200 Subject: [PATCH] Add assert --- source/fe/fe_hermite.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/fe/fe_hermite.cc b/source/fe/fe_hermite.cc index 5e6d97c3ec..12b9e1e493 100644 --- a/source/fe/fe_hermite.cc +++ b/source/fe/fe_hermite.cc @@ -64,6 +64,8 @@ namespace internal inline unsigned int get_regularity_from_degree(const unsigned int fe_degree) { + Assert(fe_degree % 2 == 1, + ExcMessage("FE_Hermite only supports odd polynomial degrees.")); return (fe_degree == 0) ? 0 : (fe_degree - 1) / 2; } -- 2.39.5