Skip to content

Commit

Permalink
fixed comm
Browse files Browse the repository at this point in the history
  • Loading branch information
Oskar Taubert committed May 15, 2024
1 parent a7ed381 commit 8a75b20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions propulate/pollinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,10 @@ def _work(self, logging_interval: int = 10, debug: int = 1):
# Loop over generations.
# TODO this should probably be refactored, checkpointing can probably be handled in one place
with h5py.File(
self.checkpoint_path, "a", driver="mpio", comm=MPI.COMM_WORLD
self.checkpoint_path, "a", driver="mpio", comm=self.propulate_comm
) as f:
while self.generations <= -1 or self.generation < self.generations:
if debug == 1 and self.generation % int(logging_interval) == 0:
while self.generation < self.generations:
if self.generation % int(logging_interval) == 0:
log.info(
f"Island {self.island_idx} Worker {self.island_comm.rank}: In generation {self.generation}..."
)
Expand Down

0 comments on commit 8a75b20

Please sign in to comment.