]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid yet another (completely legitimate) warning.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 16 Sep 2013 20:03:51 +0000 (20:03 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 16 Sep 2013 20:03:51 +0000 (20:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@30742 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/hp/dof_level.h

index 80c4e24b3fc74a7a24a8a16b251112ca55e34447..0f9e43fd850fdd74faf0f020508b589756eac93a 100644 (file)
@@ -324,7 +324,7 @@ namespace internal
       // make sure we are on an
       // object for which DoFs have
       // been allocated at all
-      Assert (dof_offsets[obj_index] != numbers::invalid_dof_index,
+      Assert (dof_offsets[obj_index] != (offset_type)(-1),
               ExcMessage ("You are trying to access degree of freedom "
                           "information for an object on which no such "
                           "information is available"));
@@ -356,7 +356,7 @@ namespace internal
       // make sure we are on an
       // object for which DoFs have
       // been allocated at all
-      Assert (dof_offsets[obj_index] != numbers::invalid_dof_index,
+      Assert (dof_offsets[obj_index] != (offset_type)(-1),
               ExcMessage ("You are trying to access degree of freedom "
                           "information for an object on which no such "
                           "information is available"));

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.