From: Uwe Koecher Date: Wed, 17 Jul 2013 19:51:11 +0000 (+0000) Subject: changed vtk_cell_type dimension to 5, to allow dim=4 instantiation, as supposed by... X-Git-Tag: v8.0.0~97 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e5f275ebb6c7f1af2456711f5e34bfba09bda3e;p=dealii.git changed vtk_cell_type dimension to 5, to allow dim=4 instantiation, as supposed by Wolfgang git-svn-id: https://svn.dealii.org/trunk@30025 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 6e414d7e1f..17cd9b2e04 100644 --- a/deal.II/source/base/data_out_base.cc +++ b/deal.II/source/base/data_out_base.cc @@ -300,9 +300,13 @@ namespace }; #endif - static unsigned int vtk_cell_type[4] = + // NOTE: (UK) The dimension of the array is choosen to 5 to allow the choice + // DataOutBase in general + // Wolfgang supposed that we don't need it in general, but however this + // choice avoids a -Warray-bounds check warning + static unsigned int vtk_cell_type[5] = { - 0, 3, 9, 12 + 0, 3, 9, 12, static_cast(-1) }; //----------------------------------------------------------------------//