]> https://gitweb.dealii.org/ - dealii.git/commit
Avoid MPI calls in ~TimerOutput. 5558/head
authorDavid Wells <wellsd2@rpi.edu>
Thu, 30 Nov 2017 17:52:20 +0000 (12:52 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Wed, 6 Dec 2017 13:36:24 +0000 (08:36 -0500)
commit9b38449cd6e49b5602186068d0f7d9e5872b9829
treec183dfdcfb8ce5f51d482cdd963e68304e470a10
parentf6473e3b1fd2992279afeffe562ce9604faeff08
Avoid MPI calls in ~TimerOutput.

~TimerOutput prints timing information after communicating across an MPI
communicator. This MPI call can lead to deadlocks if some, but not all,
proceses throw an exception. Get around this by skipping inter-process
MPI calls when there is an uncaught exception.
include/deal.II/base/timer.h
source/base/timer.cc
tests/base/timer_07.cc [new file with mode: 0644]
tests/base/timer_07.with_mpi=true.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.