]> https://gitweb.dealii.org/ - dealii.git/commitdiff
maybe make clang-tidy happy
authorTimo Heister <timo.heister@gmail.com>
Fri, 8 Jul 2022 20:29:55 +0000 (16:29 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sat, 9 Jul 2022 21:59:24 +0000 (17:59 -0400)
source/base/data_out_base.cc

index 623374586a6494335b9fe72ba8682ecdf31449eb..e9b8d0f37c43067e9e1cdb915b6a7f8d0663c5d7 100644 (file)
@@ -7652,8 +7652,14 @@ namespace DataOutBase
     // rank 0 also collects and writes the size of the data from each rank in
     // bytes:
     std::vector<std::uint64_t> chunk_sizes(n_ranks);
-    int                        ierr = MPI_Gather(
-      &my_size, 1, MPI_UINT64_T, chunk_sizes.data(), 1, MPI_UINT64_T, 0, comm);
+    int                        ierr = MPI_Gather(&my_size,
+                          1,
+                          MPI_UINT64_T,
+                          static_cast<std::uint64_t *>(chunk_sizes.data()),
+                          1,
+                          MPI_UINT64_T,
+                          0,
+                          comm);
     AssertThrowMPI(ierr);
 
     MPI_Info info;

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.