]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check the numeric type to get an upper bound. 4719/head
authorDavid Wells <wellsd2@rpi.edu>
Tue, 8 Aug 2017 00:12:37 +0000 (20:12 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Tue, 8 Aug 2017 00:12:37 +0000 (20:12 -0400)
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

index 97843c82798a085e2c5c1556771dad0909279d57..15acd1cfbbb81802aae547d19830f1086b3643be 100644 (file)
@@ -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<decltype(touch_count)::value_type>::max(),
                     ExcInternalError());
             ++touch_count[local_dof_indices[j]];
           }

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.