From d7d1279cbcfe3e8aa8318027fd9ddf5ca3fb4d39 Mon Sep 17 00:00:00 2001 From: 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