From 378b97ee947732deeea64602e7bcbb389941d06d Mon Sep 17 00:00:00 2001 From: koecher Date: Wed, 17 Jul 2013 19:51:11 +0000 Subject: [PATCH] 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 --- deal.II/source/base/data_out_base.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) }; //----------------------------------------------------------------------// -- 2.39.5