Skip to content

Commit

Permalink
Run instance in rank 0 only
Browse files Browse the repository at this point in the history
  • Loading branch information
jorblancoa committed Feb 28, 2024
1 parent 69d54fc commit e935481
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion neurodamus/core/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def __init__(self):
self.sim_start = self.last_time_check
self.update_progress()

@run_only_rank0
def update_progress(self):
"""
Callback function that refreshes the progress value (if enough time has elapsed) and then
Expand Down
3 changes: 2 additions & 1 deletion neurodamus/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,8 @@ def run_all(self):
# -
@return_neuron_timings
def _run_neuron(self):
SimulationProgress()
if MPI.rank == 0:
_ = SimulationProgress()
self.solve()
logging.info("Simulation finished.")

Expand Down

0 comments on commit e935481

Please sign in to comment.