From b8cd4146ef1a09c62fa1550d6752f6485d4ccf38 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 2 Sep 2021 13:26:44 -0600 Subject: [PATCH] Add a static_assert to DataOutStack. --- include/deal.II/numerics/data_out_stack.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/deal.II/numerics/data_out_stack.h b/include/deal.II/numerics/data_out_stack.h index 9a64917597..ea5c5f1881 100644 --- a/include/deal.II/numerics/data_out_stack.h +++ b/include/deal.II/numerics/data_out_stack.h @@ -134,7 +134,12 @@ template class DataOutStack : public DataOutInterface { - static_assert(dim == spacedim, "Not implemented for dim != spacedim."); + static_assert(dim < 3, + "Because this class stacks data into the (dim+1)st " + "dimension to create graphical output, it only works for " + "dim<3."); + static_assert(dim == spacedim, + "This class is not implemented for dim != spacedim."); public: /** -- 2.39.5