]> https://gitweb.dealii.org/ - dealii.git/commitdiff
FlexibleIndexStorage: fix memory allocation 16615/head
authorPeter Munch <peterrmuench@gmail.com>
Fri, 9 Feb 2024 11:58:59 +0000 (12:58 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Fri, 9 Feb 2024 11:58:59 +0000 (12:58 +0100)
source/base/mpi_compute_index_owner_internal.cc

index ef3fd7300d1b031dc4f34d8f6e857268207589f0..e31a8760ccad8111eb4f3f31c0fdd99ad3d15345 100644 (file)
@@ -55,7 +55,7 @@ namespace Utilities
 
           // in case we have contiguous indices, only fill the vector upon
           // first request in `fill`
-          if (!index_range_contiguous)
+          if (use_vector && !index_range_contiguous)
             data.resize(size, invalid_index_value);
         }
 

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.