From 67c4eb591a2965a52cf9a7ec16f4ba66b1c3843a Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 16 Oct 2013 18:40:21 +0000 Subject: [PATCH] add assert for a wrong index computation (fix comes soon) git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31265 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/numerics/data_out.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deal.II/source/numerics/data_out.cc b/deal.II/source/numerics/data_out.cc index eeef590696..0a8646d11c 100644 --- a/deal.II/source/numerics/data_out.cc +++ b/deal.II/source/numerics/data_out.cc @@ -302,6 +302,9 @@ build_one_patch (const std::pair *cell_and_index, = (*data.cell_to_patch_index_map)[neighbor->level()][neighbor->index()]; } + // did we mess up the indices? + Assert(cell_and_index->second < patches.size(), ExcInternalError()); + // Put the patch in the patches vector patches[cell_and_index->second] = patch; patches[cell_and_index->second].patch_index = cell_and_index->second; -- 2.39.5