]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use std::uint8_t instead of 'unsigned char' for refinement flags. 5896/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 13 Feb 2018 21:58:43 +0000 (14:58 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 13 Feb 2018 23:37:46 +0000 (16:37 -0700)
include/deal.II/grid/tria_levels.h

index ea3d9ec3fdb8fece3df05758b00c9ec68e348c99..b1a3c2feacce85521ebf31f856bd0db6c3073b00 100644 (file)
@@ -25,6 +25,8 @@
 
 #include <boost/serialization/utility.hpp>
 
+#include <cstdint>
+
 DEAL_II_NAMESPACE_OPEN
 
 namespace internal
@@ -62,7 +64,7 @@ namespace internal
        * equals the length of the @p lines vector, in two dimensions that of
        * the @p quads vector, etc.
        */
-      std::vector<unsigned char> refine_flags;
+      std::vector<std::uint8_t> refine_flags;
 
       /**
        * Same meaning as the one above, but specifies whether a cell must be
@@ -216,7 +218,7 @@ namespace internal
     class TriaLevel<3>
     {
     public:
-      std::vector<unsigned char> refine_flags;
+      std::vector<std::uint8_t> refine_flags;
       std::vector<bool> coarsen_flags;
       std::vector<unsigned int> active_cell_indices;
       std::vector<std::pair<int,int> > neighbors;

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.