Skip to content

Commit

Permalink
Fix bug in master_only decorator function
Browse files Browse the repository at this point in the history
  • Loading branch information
PytLab committed Nov 23, 2018
1 parent af9bdeb commit 105a5ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gaft/mpiutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def master_only(func):
'''
@wraps(func)
def _call_in_master_proc(*args, **kwargs):
mpi = MPIUtil()
if mpi.is_master:
return func(*args, **kwargs)

Expand Down

0 comments on commit 105a5ff

Please sign in to comment.