From: Daniel Arndt Date: Sat, 20 Oct 2018 00:05:51 +0000 (+0200) Subject: Use DEAL_II_MPI_CONST_CAST in another place X-Git-Tag: v9.1.0-rc1~606^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a00f478231c3ce267f80f486740718d5dc3e1302;p=dealii.git Use DEAL_II_MPI_CONST_CAST in another place --- diff --git a/include/deal.II/base/mpi.templates.h b/include/deal.II/base/mpi.templates.h index 4de4cc641d..d6628482d1 100644 --- a/include/deal.II/base/mpi.templates.h +++ b/include/deal.II/base/mpi.templates.h @@ -164,13 +164,7 @@ namespace Utilities # endif const int ierr = MPI_Allreduce(values != output ? - // TODO This const_cast is only needed for older - // (e.g., openMPI 1.6, released in 2012) - // implementations of MPI-2. It is not needed as - // of MPI-3 and we should remove it at some - // point in the future. - const_cast( - static_cast(values.data())) : + DEAL_II_MPI_CONST_CAST(values.data()) : MPI_IN_PLACE, static_cast(output.data()), static_cast(values.size()),