diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2017-05-25 18:45:25 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2017-05-25 18:45:25 -0400 |
commit | 89f005fb81c5d150bb128dab67b5669e90160463 (patch) | |
tree | e30c608fc1cd0b4c0b09c9550e2bb71a7f903b20 /src | |
parent | 1a7f1381bc89b66b66600ed534a5e23be08b2344 (diff) | |
download | c++-89f005fb81c5d150bb128dab67b5669e90160463.tar.gz c++-89f005fb81c5d150bb128dab67b5669e90160463.tar.bz2 c++-89f005fb81c5d150bb128dab67b5669e90160463.zip |
fixed integer overflow bug in flip_cluster
Diffstat (limited to 'src')
-rw-r--r-- | src/wolff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wolff.c b/src/wolff.c index 80f8278..9e08d90 100644 --- a/src/wolff.c +++ b/src/wolff.c @@ -71,7 +71,7 @@ int main(int argc, char *argv[]) { dE1 = 0; dM1 = 0; Mmu2 = 0; Mmu4 = 0; Emu2 = 0; Emu4 = 0; printf("\n"); - while (diff > eps || diff == 0. || diff != diff || n_runs < min_runs) { + while (diff > eps || diff == 0. || n_runs < min_runs) { printf("\033[F\033[JWOLFF: sweep %llu, dH/H = %.4f, dM/M = %.4f, dC/C = %.4f, dX/X = %.4f, cps: %.1f\n", n_runs, fabs(dE1 / E1), dM1 / M1, dC / C, dX / X, clust_per_sweep); uint32_t n_flips = 0; |