]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix type in SparsityPattern 17772/head
authorPeter Munch <peterrmuench@gmail.com>
Sun, 13 Oct 2024 20:59:34 +0000 (22:59 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sun, 13 Oct 2024 20:59:34 +0000 (22:59 +0200)
source/lac/sparsity_pattern.cc

index 48afd947c03d3e19eff55529a897722b8747682e..0cbdba67fe4e6b50f50690309f40d6dc51749a2c 100644 (file)
@@ -341,7 +341,7 @@ SparsityPattern::compress()
   if (compressed)
     return;
 
-  size_type next_free_entry = 0, next_row_start = 0, row_length = 0;
+  std::size_t next_free_entry = 0, next_row_start = 0, row_length = 0;
 
   // first find out how many non-zero elements there are, in order to allocate
   // the right amount of memory
@@ -361,7 +361,7 @@ SparsityPattern::compress()
     {
       // copy used entries, break if first unused entry is reached
       row_length = 0;
-      for (size_type j = rowstart[line]; j < rowstart[line + 1];
+      for (std::size_t j = rowstart[line]; j < rowstart[line + 1];
            ++j, ++row_length)
         if (colnums[j] != invalid_entry)
           tmp_entries[row_length] = colnums[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.