From 82e1ed5692b8be25badfb3639f59c5a0e80e9c12 Mon Sep 17 00:00:00 2001
From: bangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Tue, 5 Feb 2008 21:40:17 +0000
Subject: [PATCH] Add an assertion that trips on andromeda and lets the test
 fail there.

git-svn-id: https://svn.dealii.org/trunk@15713 0785d39b-7218-0410-832d-ea1e28bc413d
---
 deal.II/deal.II/include/numerics/vectors.templates.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/deal.II/deal.II/include/numerics/vectors.templates.h b/deal.II/deal.II/include/numerics/vectors.templates.h
index 0b90d4057f..1c5cc9f8be 100644
--- a/deal.II/deal.II/include/numerics/vectors.templates.h
+++ b/deal.II/deal.II/include/numerics/vectors.templates.h
@@ -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,
-- 
2.39.5