]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a static_assert to DataOutStack. 12736/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 2 Sep 2021 19:26:44 +0000 (13:26 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 2 Sep 2021 19:26:44 +0000 (13:26 -0600)
include/deal.II/numerics/data_out_stack.h

index 9a64917597dfe37d7955435eafe3e9f70d380a19..ea5c5f188136849e0144d1e17a281cd9546423d3 100644 (file)
@@ -134,7 +134,12 @@ template <int dim, int spacedim>
 class DataOutStack<dim, spacedim, void>
   : public DataOutInterface<dim + 1, spacedim + 1>
 {
-  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:
   /**

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.