From 1c9820d4da595ac891a7bd8382d2bad7d6b2ff76 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 2 Nov 2017 23:05:59 -0400 Subject: fixed small bug in warning when autocorrelation hasn't finished --- src/wolff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/wolff.c') diff --git a/src/wolff.c b/src/wolff.c index a806681..9fb7eb3 100644 --- a/src/wolff.c +++ b/src/wolff.c @@ -232,7 +232,6 @@ int main(int argc, char *argv[]) { double *Gammas = (double *)malloc((W + 1) * sizeof(double)); Gammas[0] = 1 + rho(autocorr, 0); - printf("%g ", Gammas[0]); for (uint64_t i = 0; i < W; i++) { Gammas[1 + i] = rho(autocorr, 2 * i + 1) + rho(autocorr, 2 * i + 2); } @@ -244,7 +243,7 @@ int main(int argc, char *argv[]) { } } - if (n == W) { + if (n == W + 1) { printf("WARNING: correlation function never hit the noise floor.\n"); } -- cgit v1.2.3-70-g09d2