]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add an assertion that trips on andromeda and lets the test fail there.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Feb 2008 21:40:17 +0000 (21:40 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Feb 2008 21:40:17 +0000 (21:40 +0000)
git-svn-id: https://svn.dealii.org/trunk@15713 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/vectors.templates.h

index 0b90d4057fecb7f903d650bab4fd676c1492309f..1c5cc9f8be6611f623f735f81e56080c0be012a8 100644 (file)
@@ -2250,6 +2250,11 @@ VectorTools::compute_no_normal_flux_constraints (const DH<dim>         &dof_hand
       if (p == dof_to_normals_map.end())
        same_dof_range[1] = dof_to_normals_map.end();
 
+      for (unsigned int i=0; i<2; ++i)
+       for (unsigned int d=0; d<dim; ++d)
+         Assert (same_dof_range[i]->first.dof_indices[d] < dof_handler.n_dofs(),
+                 ExcInternalError());
+
                                       // now compute the reverse mapping: for
                                       // each of the cells that contributed
                                       // to the current set of vector dofs,

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.