]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a few assertions covering cases where the compiler currently warns.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 4 Nov 2012 17:27:52 +0000 (17:27 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 4 Nov 2012 17:27:52 +0000 (17:27 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@27345 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/data_out_base.cc

index 6ef2bc2d1e23f18f93acb9fe04de9da57929f530..19d7d9432fb77bf24e0f4b54999ec307137756e2 100644 (file)
@@ -1084,6 +1084,8 @@ namespace
     unsigned int d2,
     unsigned int d3)
   {
+    Assert (dim <= 3, ExcNotImplemented());
+
     int nodes[8];
     nodes[GeometryInfo<dim>::dx_to_deal[0]] = start;
     nodes[GeometryInfo<dim>::dx_to_deal[1]] = start+d1;
@@ -1306,6 +1308,8 @@ namespace
     unsigned int d2,
     unsigned int d3)
   {
+    Assert (dim <= 3, ExcNotImplemented());
+
     int nodes[8];
     nodes[GeometryInfo<dim>::ucd_to_deal[0]] = start;
     nodes[GeometryInfo<dim>::ucd_to_deal[1]] = start+d1;

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.