From: 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-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=378b97ee947732deeea64602e7bcbb389941d06d;p=dealii-svn.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) }; //----------------------------------------------------------------------//