]> https://gitweb.dealii.org/ - dealii.git/commit
Check for job_supports_mpi() inside MPI Allgather functions. 438/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 13 Jan 2015 21:39:18 +0000 (22:39 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 13 Jan 2015 21:44:50 +0000 (22:44 +0100)
commit6452dc3b3b0ba35225aaef25e2568b89c614162b
tree61887542af5e3e2468593d6818362b7ee538a76d
parentac8b03b1cb7f28472a87a0deece471230fa5b6f5
Check for job_supports_mpi() inside MPI Allgather functions.

MPI calls are only allowed if MPI_Init has been called. To simplify
calls to MPI::sum, MPI::max etc. and avoid putting job_supports_mpi()
around them, place this hopefully very cheap test inside the functions.

Also moved job_supports_mpi() from the namespace Utilities::System to
Utilities::MPI.
14 files changed:
doc/news/changes.h
include/deal.II/base/mpi.h
include/deal.II/base/utilities.h
include/deal.II/lac/parallel_vector.templates.h
include/deal.II/matrix_free/matrix_free.templates.h
source/base/mpi.cc
source/base/partitioner.cc
source/base/timer.cc
source/base/utilities.cc
tests/mpi/collective_01.cc
tests/mpi/distribute_sp_01.cc
tests/mpi/distribute_sp_02.cc
tests/mpi/point_to_point_pattern_01.cc
tests/mpi/simple_mpi_01.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.