summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2017-11-03 14:36:56 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2017-11-03 14:36:56 -0400
commitc93a56cb0b5e52242667b918a6800384498b9b12 (patch)
treef80b7d5c3691d9f5582da6df33600e74e53bee47
parent0cde9f780942559625ff4a9162a71b1156947b96 (diff)
downloadc++-c93a56cb0b5e52242667b918a6800384498b9b12.tar.gz
c++-c93a56cb0b5e52242667b918a6800384498b9b12.tar.bz2
c++-c93a56cb0b5e52242667b918a6800384498b9b12.zip
removed calculation of block means
-rw-r--r--src/wolff.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/wolff.c b/src/wolff.c
index 0ab6a29..c532be4 100644
--- a/src/wolff.c
+++ b/src/wolff.c
@@ -136,7 +136,7 @@ int main(int argc, char *argv[]) {
uint64_t n_steps = 0;
double clust_per_sweep = 0;
- meas_t *M, *aM, *eM, *mM, *E, *eE, *mE, *clust, *everyE, *blockE;
+ meas_t *M, *aM, *eM, *mM, *E, *eE, *mE, *clust;
M = calloc(1, sizeof(meas_t));
aM = calloc(1, sizeof(meas_t));
@@ -146,12 +146,6 @@ int main(int argc, char *argv[]) {
eE = calloc(1, sizeof(meas_t));
mE = calloc(1, sizeof(meas_t));
clust = calloc(1, sizeof(meas_t));
- everyE = calloc(1, sizeof(meas_t));
-
- blockE = calloc(1,sizeof(meas_t));
-
- uint64_t blocksize = 1000;
- double Etot = 0;
autocorr_t *autocorr;
if (record_autocorrelation) {
@@ -178,12 +172,6 @@ int main(int argc, char *argv[]) {
}
if (record_autocorrelation && n_runs > 0) {
- update_meas(everyE, s->H);
- if (n_steps % blocksize == 0) {
- update_meas(blockE, Etot / blocksize);
- Etot = 0;
- }
- Etot += s->H;
if (n_steps % ac_skip == 0) {
update_autocorr(autocorr, s->H);
}