summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2017-10-23 12:24:35 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2017-10-23 12:24:35 -0400
commit3d8aae46aed819c91c881d2586c36adf8c06e848 (patch)
tree00bf855bb566289837e3bd48909c299949207fe2
parent52893989132d031857eac9463f40d74bf8bec37a (diff)
downloadc++-3d8aae46aed819c91c881d2586c36adf8c06e848.tar.gz
c++-3d8aae46aed819c91c881d2586c36adf8c06e848.tar.bz2
c++-3d8aae46aed819c91c881d2586c36adf8c06e848.zip
stopped recording of autocorrelation when flag isn't set
-rw-r--r--src/wolff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wolff.c b/src/wolff.c
index 191a5dd..45e45f2 100644
--- a/src/wolff.c
+++ b/src/wolff.c
@@ -161,7 +161,7 @@ int main(int argc, char *argv[]) {
n_steps += tmp_flips;
- if (n_runs > 0) {
+ if (n_runs > 0 && record_autocorrelation) {
update_meas(corrE, s->H);
if (batch_flips <= batch_size && batch_flips + tmp_flips > batch_size) {
update_meas(corrmE, batch_mean_energy / n_batch);