From a6804bb7a68436ac859c7fc13e5764b9213f82c4 Mon Sep 17 00:00:00 2001 From: David Wells Date: Mon, 7 Aug 2017 20:12:37 -0400 Subject: [PATCH] Check the numeric type to get an upper bound. According to @bangerth this is a holdover from long ago when 255 was automatically replaced with numbers::internal_face_boundary_id everywhere in the library. --- include/deal.II/numerics/vector_tools.templates.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h index 97843c8279..15acd1cfbb 100644 --- a/include/deal.II/numerics/vector_tools.templates.h +++ b/include/deal.II/numerics/vector_tools.templates.h @@ -345,7 +345,8 @@ namespace VectorTools // count, how often we have // added to this dof - Assert (touch_count[local_dof_indices[j]] < numbers::internal_face_boundary_id, + Assert (touch_count[local_dof_indices[j]] + < std::numeric_limits::max(), ExcInternalError()); ++touch_count[local_dof_indices[j]]; } -- 2.39.5