Skip to content

Commit

Permalink
fix MPI issue due to mixing single and double precision
Browse files Browse the repository at this point in the history
  • Loading branch information
eimrek committed Feb 3, 2025
1 parent 1705a2e commit f607b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cp2k_spm_tools/cp2k_stm_sts.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def divide_by_space(self):
recvbuf = np.empty(sum(orbitals_per_rank) * num_spatial_points, dtype=self.cgo.dtype)
else:
recvbuf = None
sendbuf = p_tip_contrib[:, ix_start:ix_end, :, :].ravel()
sendbuf = p_tip_contrib[:, ix_start:ix_end, :, :].ravel().astype(self.cgo.dtype)
self.mpi_comm.Gatherv(
sendbuf=sendbuf, recvbuf=[recvbuf, orbitals_per_rank * num_spatial_points], root=rank
)
Expand Down

0 comments on commit f607b03

Please sign in to comment.