[pyfr] 24/88: Where possible explicitly finalise MPI.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Nov 16 12:05:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository pyfr.

commit e85868b77f31965c31a58df0c64589a0226e9a37
Author: Freddie Witherden <freddie at witherden.org>
Date:   Sun Apr 24 15:26:59 2016 -0700

    Where possible explicitly finalise MPI.
    
    This should cut down on the number of (harmless) MPI related
    segfaults which occur on exit.
    
    Note that at the point MPI_Finalize is invoked there are indeed
    still some MPI requests extant in the solver.  However, when
    these are garbage collected mpi4py first checks the status of MPI
    before releasing them.
---
 pyfr/scripts/main.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pyfr/scripts/main.py b/pyfr/scripts/main.py
index faf4a68..0afdd64 100755
--- a/pyfr/scripts/main.py
+++ b/pyfr/scripts/main.py
@@ -224,6 +224,9 @@ def _process_common(args, mesh, soln, cfg):
     # Execute!
     solver.run()
 
+    # Finalise MPI
+    MPI.Finalize()
+
 
 def process_run(args):
     _process_common(

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyfr.git



More information about the debian-science-commits mailing list