From: Timo Heister Date: Wed, 16 Oct 2013 18:40:21 +0000 (+0000) Subject: add assert for a wrong index computation (fix comes soon) X-Git-Tag: v8.1.0~570^2~41 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67c4eb591a2965a52cf9a7ec16f4ba66b1c3843a;p=dealii.git 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 --- 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;