summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/wolff_tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wolff_tools.c b/lib/wolff_tools.c
index 72cf9f7..4fc096e 100644
--- a/lib/wolff_tools.c
+++ b/lib/wolff_tools.c
@@ -168,7 +168,7 @@ int32_t wolff_step(double T, double H, ising_state_t *s, gsl_rng *r, double *ps)
cluster_t *c = flip_cluster(s->g, ps, H, s->spins, r);
s->M += 2 * c->nv;
- s->H += c->dH;
+ s->H += 2 * c->dH;
int32_t n_flipped = c->nv;