From: bangerth Date: Sun, 4 Nov 2012 17:27:52 +0000 (+0000) Subject: Add a few assertions covering cases where the compiler currently warns. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=561826d18ff038b313e4d21c1d79465b96bf9b68;p=dealii-svn.git Add a few assertions covering cases where the compiler currently warns. git-svn-id: https://svn.dealii.org/branches/branch_cmake@27345 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/data_out_base.cc b/deal.II/source/base/data_out_base.cc index 6ef2bc2d1e..19d7d9432f 100644 --- a/deal.II/source/base/data_out_base.cc +++ b/deal.II/source/base/data_out_base.cc @@ -1084,6 +1084,8 @@ namespace unsigned int d2, unsigned int d3) { + Assert (dim <= 3, ExcNotImplemented()); + int nodes[8]; nodes[GeometryInfo::dx_to_deal[0]] = start; nodes[GeometryInfo::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::ucd_to_deal[0]] = start; nodes[GeometryInfo::ucd_to_deal[1]] = start+d1;