Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing call in SOECPotential::evaluateValueAndDerivatives #5178

Merged
merged 2 commits into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/QMCHamiltonians/SOECPotential.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@
const auto& displ = ble.getDisplRow(jel);
for (int iat = 0; iat < num_ions_; iat++)
if (pp_[iat] != nullptr && dist[iat] < pp_[iat]->getRmax())
value_ += pp_[iat]->evaluateValueAndDerivatives(P, iat, psi_, jel, dist[iat], -displ[iat], optvars, dlogpsi,
if (use_exact_spin_)
value_ += pp_[iat]->evaluateValueAndDerivativesExactSpinIntegration(P, iat, psi_, jel, dist[iat], -displ[iat], optvars, dlogpsi,

Check warning on line 132 in src/QMCHamiltonians/SOECPotential.cpp

View check run for this annotation

Codecov / codecov/patch

src/QMCHamiltonians/SOECPotential.cpp#L132

Added line #L132 was not covered by tests
dhpsioverpsi);

else
value_ += pp_[iat]->evaluateValueAndDerivatives(P, iat, psi_, jel, dist[iat], -displ[iat], optvars, dlogpsi,

Check warning on line 136 in src/QMCHamiltonians/SOECPotential.cpp

View check run for this annotation

Codecov / codecov/patch

src/QMCHamiltonians/SOECPotential.cpp#L136

Added line #L136 was not covered by tests
dhpsioverpsi);
}
return value_;
Expand Down
Loading