diff --git a/src/hamiltonian/ks_hamiltonian.hpp b/src/hamiltonian/ks_hamiltonian.hpp index eea8f1bf..8aa823b5 100644 --- a/src/hamiltonian/ks_hamiltonian.hpp +++ b/src/hamiltonian/ks_hamiltonian.hpp @@ -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 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; }