From: David Wells Date: Tue, 8 Aug 2017 00:12:37 +0000 (-0400) Subject: Check the numeric type to get an upper bound. X-Git-Tag: v9.0.0-rc1~1347^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6804bb7a68436ac859c7fc13e5764b9213f82c4;p=dealii.git 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. --- 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]]; }