Skip to content

Commit

Permalink
Fix bug in lattice tools dos function
Browse files Browse the repository at this point in the history
  • Loading branch information
mzingl authored and Wentzell committed Nov 11, 2019
1 parent 2ede41a commit 3e0ed62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion triqs/lattice/tight_binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ namespace triqs {
for (int j = 0; j < grid.size(); j++) {
int a = int((eval(l, j) - epsmin) / deps);
if (a == int(neps)) a = a - 1;
for (int k = 0; k < norb; k++) { rho(a, l) += real(conj(evec(l, k, j)) * evec(l, k, j)); }
for (int k = 0; k < norb; k++) { rho(a, k) += real(conj(evec(l, k, j)) * evec(l, k, j)); }
}
}
rho /= grid.size() * deps;
Expand Down

0 comments on commit 3e0ed62

Please sign in to comment.