Skip to content

Commit

Permalink
Bugfix: The uniform vector potential was missing in the energy calcul…
Browse files Browse the repository at this point in the history
…ation.
  • Loading branch information
xavierandrade committed Oct 11, 2024
1 parent 0a52fa6 commit 9c926e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hamiltonian/ks_hamiltonian.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ class ks_hamiltonian {

} else {

auto proj = projectors_all_.project(phi, phi.kpoint());
auto proj = projectors_all_.project(phi, phi.kpoint() + uniform_vector_potential_);

states::orbital_set<basis::real_space, complex> vnlphi(phi.skeleton());
vnlphi.fill(0.0);

projectors_all_.apply(proj, vnlphi, phi.kpoint());
projectors_all_.apply(proj, vnlphi, phi.kpoint() + uniform_vector_potential_);

return vnlphi;
}
Expand Down

0 comments on commit 9c926e7

Please sign in to comment.