summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2021-11-09 10:23:52 +0100
committerJaron Kent-Dobias <jaron@kent-dobias.com>2021-11-09 10:23:52 +0100
commit09adffc5f67dbb41905b254224e8c2d2b46d1516 (patch)
treec143a65cc0f7d1a021ca11cafc1088348532f5f7
parent7bf6e952b53699977f5091a78f0f9f48f7b359c5 (diff)
downloadcode-09adffc5f67dbb41905b254224e8c2d2b46d1516.tar.gz
code-09adffc5f67dbb41905b254224e8c2d2b46d1516.tar.bz2
code-09adffc5f67dbb41905b254224e8c2d2b46d1516.zip
Fixed bug in mixed-spin energy evalutaion.
-rw-r--r--p-spin.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/p-spin.hpp b/p-spin.hpp
index a5f6c9a..7a49bca 100644
--- a/p-spin.hpp
+++ b/p-spin.hpp
@@ -46,7 +46,7 @@ std::tuple<Scalar, Vector<Scalar>, Matrix<Scalar>, Tensor<Scalar, 3>> hamGradHes
Scalar H = Jzzz / pBang;
if constexpr (sizeof...(Js) > 0) {
- auto [Hs, dHs, ddHs, dddHs] = hamGradHess(z, Js...);
+ auto [Hs, dHs, ddHs, dddHs] = hamGradHessHelper(z, Js...);
H += Hs;
dH += dHs;
ddH += ddHs;