From cd85d3696be4a7ee65b0cf6669fc62dc4841aef3 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 18 Jul 2018 15:37:27 -0400 Subject: - added support for computing spatial fourier transforms - measurements now are functions passed to wolff in array --- lib/state.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/state.h') diff --git a/lib/state.h b/lib/state.h index 8d4265b..1491938 100644 --- a/lib/state.h +++ b/lib/state.h @@ -19,6 +19,7 @@ class state_t { R_t R; double E; X_t M; // the "sum" of the spins, like the total magnetization + v_t last_cluster_size; std::function J; std::function H; @@ -36,6 +37,7 @@ class state_t { init (&R); E = - (double)ne * J(spins[0], spins[0]) - (double)nv * H(spins[0]); M = scalar_multiple (nv, spins[0]); + last_cluster_size = 0; } ~state_t() { -- cgit v1.2.3-70-g09d2