]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid warning about unused variable in compute_n_point_to_point_communications 7157/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 6 Sep 2018 20:30:53 +0000 (22:30 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 7 Sep 2018 11:56:03 +0000 (13:56 +0200)
source/base/mpi.cc

index 2ecf9fcd5c150f775909411702a6392bec1030c7..9673d29bcde851fdc17e5b51c6af50206f5becdc 100644 (file)
@@ -299,14 +299,13 @@ namespace Utilities
       const MPI_Comm &                 mpi_comm,
       const std::vector<unsigned int> &destinations)
     {
-      const unsigned int myid    = Utilities::MPI::this_mpi_process(mpi_comm);
       const unsigned int n_procs = Utilities::MPI::n_mpi_processes(mpi_comm);
 
       for (unsigned int i = 0; i < destinations.size(); ++i)
         {
           Assert(destinations[i] < n_procs,
                  ExcIndexRange(destinations[i], 0, n_procs));
-          Assert(destinations[i] != myid,
+          Assert(destinations[i] != Utilities::MPI::this_mpi_process(mpi_comm),
                  ExcMessage(
                    "There is no point in communicating with ourselves."));
         }

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.