From 1eee4d6508beaaa1337f43eeb2831bcfb81e4c5f Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Thu, 2 Jun 2022 09:38:40 +0200 Subject: [PATCH] Use static_assert to ensure correct type --- source/matrix_free/dof_info.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/matrix_free/dof_info.cc b/source/matrix_free/dof_info.cc index 74bb04d153..ac7e721ff1 100644 --- a/source/matrix_free/dof_info.cc +++ b/source/matrix_free/dof_info.cc @@ -28,6 +28,13 @@ namespace internal { namespace MatrixFreeFunctions { + // ensure that the type defined in both dof_info.h and + // hanging_nodes_internal.h is consistent + static_assert(std::is_same::value, + "Unexpected type for compressed hanging node indicators!"); + + + DoFInfo::DoFInfo() { clear(); -- 2.39.5