From: Timo Heister Date: Sat, 23 Oct 2021 14:57:53 +0000 (-0400) Subject: fix two more places X-Git-Tag: v9.4.0-rc1~889^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12832%2Fhead;p=dealii.git fix two more places --- diff --git a/source/distributed/tria_base.cc b/source/distributed/tria_base.cc index 7f6eecfc72..4cc72503b4 100644 --- a/source/distributed/tria_base.cc +++ b/source/distributed/tria_base.cc @@ -1427,11 +1427,10 @@ namespace parallel // it is sufficient to let only the first processor perform this task. if (myrank == 0) { - const unsigned int *data = sizes_fixed_cumulative.data(); - ierr = MPI_File_write_at(fh, 0, - DEAL_II_MPI_CONST_CAST(data), + DEAL_II_MPI_CONST_CAST( + sizes_fixed_cumulative.data()), sizes_fixed_cumulative.size(), MPI_UNSIGNED, MPI_STATUS_IGNORE); @@ -1494,14 +1493,13 @@ namespace parallel const MPI_Offset my_global_file_position = static_cast(global_first_cell) * sizeof(unsigned int); - const int *data = src_sizes_variable.data(); - - ierr = MPI_File_write_at(fh, - my_global_file_position, - DEAL_II_MPI_CONST_CAST(data), - src_sizes_variable.size(), // local buffer - MPI_INT, - MPI_STATUS_IGNORE); + ierr = + MPI_File_write_at(fh, + my_global_file_position, + DEAL_II_MPI_CONST_CAST(src_sizes_variable.data()), + src_sizes_variable.size(), + MPI_INT, + MPI_STATUS_IGNORE); AssertThrowMPI(ierr); }