From 051750e21050617b937f2cc13b6a62ac0e04c64b Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 8 Jul 2022 16:29:55 -0400 Subject: [PATCH] maybe make clang-tidy happy --- source/base/data_out_base.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 623374586a..e9b8d0f37c 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -7652,8 +7652,14 @@ namespace DataOutBase // rank 0 also collects and writes the size of the data from each rank in // bytes: std::vector 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(chunk_sizes.data()), + 1, + MPI_UINT64_T, + 0, + comm); AssertThrowMPI(ierr); MPI_Info info; -- 2.39.5