Skip to content

Commit

Permalink
wait
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed Sep 23, 2016
1 parent 9769f08 commit f1e4ff6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions schwimmbad/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def choose_pool(mpi=False, processes=1, **kwargs):

pool = MPIPool(**kwargs)
if not pool.is_master():
pool.wait()
sys.exit(0)

log.info("Running with MPI on {} cores".format(pool.size))
Expand Down

0 comments on commit f1e4ff6

Please sign in to comment.