From baf610c5be616a4f6647769c3b513e8c877a5f9b Mon Sep 17 00:00:00 2001 From: Jan Kessler Date: Thu, 9 Apr 2020 23:42:09 +0200 Subject: [PATCH] adapt to MCI's changed PDF callback interface --- include/vmc/WaveFunction.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vmc/WaveFunction.hpp b/include/vmc/WaveFunction.hpp index be612fe..330e39d 100644 --- a/include/vmc/WaveFunction.hpp +++ b/include/vmc/WaveFunction.hpp @@ -105,9 +105,9 @@ class WaveFunction: public mci::SamplingFunctionInterface return wfval*wfval; // the sampling function is Psi^2 } - void observationCallback(const mci::WalkerState &wlk, const double /*protoold*/[], const double /*protonew*/[]) override + void observationCallback(const double x[], const double /*protov*/[]) override { - this->computeAllDerivatives(wlk.xnew); + this->computeAllDerivatives(x); } // --- getters and setters for the derivatives