]> https://gitweb.dealii.org/ - dealii.git/commit
MPI_Allreduce is apparently unable to accept input and output arguments at the same...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 29 Sep 2014 15:12:57 +0000 (10:12 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 29 Sep 2014 15:12:57 +0000 (10:12 -0500)
commit9739e56818c47e01e6de32dcfb937cfc5f7c1167
tree8fa5585b6130e88710c0d58c7924117039d9289b
parent138f4c1956a5db9f5f8f962c16b2cdbca620a828
MPI_Allreduce is apparently unable to accept input and output arguments at the same location.

Fix this by determining when &input=&output and in that case pass MPI_IN_PLACE.
14 files changed:
doc/news/changes.h
include/deal.II/base/mpi.h
tests/mpi/collective_02_array_in_place.cc [new file with mode: 0644]
tests/mpi/collective_02_array_in_place.mpirun=1.output [new file with mode: 0644]
tests/mpi/collective_02_array_in_place.mpirun=10.output [new file with mode: 0644]
tests/mpi/collective_02_array_in_place.mpirun=4.output [new file with mode: 0644]
tests/mpi/collective_02_vector.cc [new file with mode: 0644]
tests/mpi/collective_02_vector.mpirun=1.output [new file with mode: 0644]
tests/mpi/collective_02_vector.mpirun=10.output [new file with mode: 0644]
tests/mpi/collective_02_vector.mpirun=4.output [new file with mode: 0644]
tests/mpi/collective_02_vector_in_place.cc [new file with mode: 0644]
tests/mpi/collective_02_vector_in_place.mpirun=1.output [new file with mode: 0644]
tests/mpi/collective_02_vector_in_place.mpirun=10.output [new file with mode: 0644]
tests/mpi/collective_02_vector_in_place.mpirun=4.output [new file with mode: 0644]

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.