]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix distributed GridTools::exchange_cell_data_to_ghost serialization call 4891/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 17 Aug 2017 17:22:25 +0000 (13:22 -0400)
committerTimo Heister <timo.heister@gmail.com>
Thu, 17 Aug 2017 17:22:25 +0000 (13:22 -0400)
include/deal.II/distributed/grid_tools.h

index 1b1e61fcc6ddbf5119bd4bfc087c582f85e41a2f..c794a707ca2d13c9098cb4048568574efda0addb 100644 (file)
@@ -154,7 +154,8 @@ namespace parallel
         {
           Assert(cell_ids.size() == data.size(), ExcInternalError());
           // archive the cellids in an efficient binary format
-          ar &cell_ids.size();
+          const size_t n_cells = cell_ids.size();
+          ar &n_cells;
           for (auto &it : cell_ids)
             {
               CellId::binary_type binary_cell_id = it.template to_binary<dim>();

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.