Skip to content

Commit

Permalink
Merge pull request #9 from sunqm/dev
Browse files Browse the repository at this point in the history
Fix issue #7
  • Loading branch information
sunqm authored Feb 22, 2019
2 parents 535b2c1 + 1374f63 commit c3fbba2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,5 +734,9 @@ def info():
from mpi4pyscf.tools import mpi
info = mpi.rank, platform.node(), platform.os.getpid()
return mpi.pool.comm.gather(info)
return pool.apply(info, (), ())

if pool.worker_status == 'R':
return info()
else:
return pool.apply(info, (), ())

0 comments on commit c3fbba2

Please sign in to comment.