]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Convert a couple of places where we intended 'unsigned int' but now had 'size_type'.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 7 Dec 2013 17:39:54 +0000 (17:39 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 7 Dec 2013 17:39:54 +0000 (17:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@31918 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/matrix_out.h
deal.II/source/lac/matrix_out.cc

index 9916e7a45cd05ef924f42a4b74a368369ee2708b..2f30fdc684197c9d3fbfa9cb724d045465311137 100644 (file)
@@ -134,7 +134,7 @@ public:
      *
      * Default value is one.
      */
-    size_type block_size;
+    unsigned int block_size;
 
     /**
      * If true, plot
@@ -149,9 +149,9 @@ public:
      * structure to their default
      * values.
      */
-    Options (const bool      show_absolute_values = false,
-             const size_type block_size           = 1,
-             const bool      discontinuous        = false);
+    Options (const bool         show_absolute_values = false,
+             const unsigned int block_size           = 1,
+             const bool         discontinuous        = false);
   };
 
   /**
@@ -365,7 +365,7 @@ MatrixOut::get_gridpoint_value (const Matrix   &matrix,
         return std::fabs(get_element (matrix, i, j));
       else
         return get_element (matrix, i, j);
-    };
+    }
 
   // if blocksize greater than one,
   // then compute average of elements
@@ -394,12 +394,12 @@ MatrixOut::build_patches (const Matrix      &matrix,
                           const Options      options)
 {
   size_type
-  gridpoints_x = (matrix.n() / options.block_size
-                  +
-                  (matrix.n() % options.block_size != 0 ? 1 : 0)),
-                 gridpoints_y = (matrix.m() / options.block_size
-                                 +
-                                 (matrix.m() % options.block_size != 0 ? 1 : 0));
+    gridpoints_x = (matrix.n() / options.block_size
+                   +
+                   (matrix.n() % options.block_size != 0 ? 1 : 0)),
+    gridpoints_y = (matrix.m() / options.block_size
+                   +
+                   (matrix.m() % options.block_size != 0 ? 1 : 0));
 
   // If continuous, the number of
   // plotted patches is matrix size-1
index 634d5dd7f93931b51798c97192d4ee1c0ddb13d9..abfe4f11166beb3dd7d0d8e298fb7a3fa822e874 100644 (file)
@@ -19,9 +19,9 @@
 DEAL_II_NAMESPACE_OPEN
 
 
-MatrixOut::Options::Options (const bool      show_absolute_values,
-                             const size_type block_size,
-                             const bool      discontinuous)
+MatrixOut::Options::Options (const bool         show_absolute_values,
+                             const unsigned int block_size,
+                             const bool         discontinuous)
   :
   show_absolute_values (show_absolute_values),
   block_size (block_size),

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.