summaryrefslogtreecommitdiff
path: root/lib/state.h
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-18 15:37:27 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-18 15:37:27 -0400
commitcd85d3696be4a7ee65b0cf6669fc62dc4841aef3 (patch)
tree6429963091115b7b1ff0a0684ff8f01274a32042 /lib/state.h
parent722bc71ed8d4e1ae5616c5c8284fbffe21c4ffa4 (diff)
downloadc++-cd85d3696be4a7ee65b0cf6669fc62dc4841aef3.tar.gz
c++-cd85d3696be4a7ee65b0cf6669fc62dc4841aef3.tar.bz2
c++-cd85d3696be4a7ee65b0cf6669fc62dc4841aef3.zip
- added support for computing spatial fourier transforms
- measurements now are functions passed to wolff in array
Diffstat (limited to 'lib/state.h')
-rw-r--r--lib/state.h2
1 files changed, 2 insertions, 0 deletions
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 <double(X_t, X_t)> J;
std::function <double(X_t)> 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() {