]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use DEAL_II_MPI_CONST_CAST in another place 7366/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 20 Oct 2018 00:05:51 +0000 (02:05 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 20 Oct 2018 00:13:11 +0000 (02:13 +0200)
include/deal.II/base/mpi.templates.h

index 4de4cc641d85012da271bdd0da7f2ca44b3dcc7e..d6628482d1626163baf1c9bd6d5adf5b8e061ced 100644 (file)
@@ -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<void *>(
-                                static_cast<const void *>(values.data())) :
+                              DEAL_II_MPI_CONST_CAST(values.data()) :
                               MPI_IN_PLACE,
                             static_cast<void *>(output.data()),
                             static_cast<int>(values.size()),

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.