summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2017-11-02 23:05:59 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2017-11-02 23:05:59 -0400
commit1c9820d4da595ac891a7bd8382d2bad7d6b2ff76 (patch)
tree28dcb5e80510d63a4818d2c4858e8fd85ece5538
parentf3d53bac095fd47f7c10f54007ffa11ab0f1ac1f (diff)
downloadc++-1c9820d4da595ac891a7bd8382d2bad7d6b2ff76.tar.gz
c++-1c9820d4da595ac891a7bd8382d2bad7d6b2ff76.tar.bz2
c++-1c9820d4da595ac891a7bd8382d2bad7d6b2ff76.zip
fixed small bug in warning when autocorrelation hasn't finished
-rw-r--r--src/wolff.c3
1 files changed, 1 insertions, 2 deletions
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");
}