Skip to content

Commit

Permalink
Fix multi-process HREMD coordinate reduce (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBoothroyd authored May 20, 2024
1 parent c72288a commit 3ad78a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion femto/md/hremd.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def run_hremd(
mpi_comm.barrier()

coords_dict = {i + replica_idx_offset: coord for i, coord in enumerate(coords)}
coords_dict = femto.md.utils.mpi.reduce_dict(coords_dict, mpi_comm, root=0)
coords_dict = femto.md.utils.mpi.reduce_dict(coords_dict, mpi_comm, root=None)

final_coords = [coords_dict[replica_to_state_idx[i]] for i in range(n_states)]

Expand Down

0 comments on commit 3ad78a1

Please sign in to comment.