Skip to content

Commit

Permalink
[tdm] fix shuffled order introduced by par_bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
Ionizing committed Mar 28, 2024
1 parent 87f3883 commit 62abe8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/tdm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ I suggest you provide `gamma_half` argument to avoid confusion.");

let tdms = iproduct!(ibands, jbands)
.filter(|(iband, jband)| iband < jband)
.par_bridge()
.collect::<Vec<_>>()
.into_par_iter()
.map(|(iband, jband)| {
let eig_i = eigs[(ispin, ikpoint, iband)] - efermi;
let eig_j = eigs[(ispin, ikpoint, jband)] - efermi;
Expand Down

0 comments on commit 62abe8b

Please sign in to comment.