]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #13488 from pengfej/fbranch
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 6 Mar 2022 21:40:38 +0000 (14:40 -0700)
committerGitHub <noreply@github.com>
Sun, 6 Mar 2022 21:40:38 +0000 (14:40 -0700)
Removing DEAL_II_MPI_CONST_CAST

1  2 
include/deal.II/base/mpi.templates.h
source/distributed/fully_distributed_tria.cc
source/distributed/tria_base.cc
source/lac/scalapack.cc

index ccccc91c1bd07b4a0b247cb25187512462baab39,679817ae5c3538e6bb2e33dc18b687a312bab2d4..844e88898f75c8ccd509ffa72e430f75ad1d0463
@@@ -80,12 -80,10 +80,10 @@@ namespace Utilitie
              }
  #  endif
              const int ierr =
-               MPI_Allreduce(values != output ?
-                               DEAL_II_MPI_CONST_CAST(values.data()) :
-                               MPI_IN_PLACE,
+               MPI_Allreduce(values != output ? values.data() : MPI_IN_PLACE,
                              static_cast<void *>(output.data()),
                              static_cast<int>(values.size()),
 -                            mpi_type_id(values.data()),
 +                            mpi_type_id_for_type<decltype(*values.data())>,
                              mpi_op,
                              mpi_communicator);
              AssertThrowMPI(ierr);
Simple merge
Simple merge

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.