Skip to content

Commit

Permalink
fix dft_ldos::J() for parallel runs (#2091)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj authored Jun 2, 2022
1 parent 708cf82 commit d1e013e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dft_ldos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ complex<double> *dft_ldos::F() const {
complex<double> *dft_ldos::J() const {
const size_t Nfreq = freq.size();
complex<double> *out = new complex<double>[Nfreq];
sum_to_all(Jdft, out, Nfreq);
// note: Jdft is the same on all processes, so no sum_to_all
memcpy(out, Jdft, Nfreq * sizeof(complex<double>));
return out;
}

Expand Down

0 comments on commit d1e013e

Please sign in to comment.