]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add assert for a wrong index computation (fix comes soon)
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Oct 2013 18:40:21 +0000 (18:40 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 16 Oct 2013 18:40:21 +0000 (18:40 +0000)
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

index eeef590696725757e1c3a0639ec9714b580b94e6..0a8646d11c1443814fa18ddcf7a1c5b7b422dad1 100644 (file)
@@ -302,6 +302,9 @@ build_one_patch (const std::pair<cell_iterator, unsigned int> *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;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.