]> https://gitweb.dealii.org/ - dealii.git/commit
return MPI_Comm by const ref 9002/head
authorTimo Heister <timo.heister@gmail.com>
Tue, 5 Nov 2019 01:38:50 +0000 (20:38 -0500)
committerTimo Heister <timo.heister@gmail.com>
Tue, 5 Nov 2019 01:38:50 +0000 (20:38 -0500)
commitd8f2acf61b98637b0824ff0c97af276aadbf239e
tree9204f7604c29fba29a3e0ec434e24421d711b34e
parentf9ea339613b8041c4e42e0c8b9e7297aa0a823be
return MPI_Comm by const ref

Fix a few places where we return the MPI_Comm by value. This is
problematic if we pass it to a function taking a reference and storing
it:

    CollectiveMutex::ScopedLock lock(mutex, tria.get_communicator());
include/deal.II/distributed/tria_base.h
include/deal.II/multigrid/multigrid.h
source/distributed/tria_base.cc

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.