From: heister Date: Wed, 16 Oct 2013 18:40:21 +0000 (+0000) Subject: add assert for a wrong index computation (fix comes soon) X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7d1279cbcfe3e8aa8318027fd9ddf5ca3fb4d39;p=dealii-svn.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;