From f2639be5d5006079868f69b0c7105a066166bec6 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 21 Jun 2017 17:29:10 -0400 Subject: fixed bug related to counting number of full cluster flips, and added support for choosing other lattices --- lib/wolff.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/wolff.h') diff --git a/lib/wolff.h b/lib/wolff.h index 4839083..cec9ee3 100644 --- a/lib/wolff.h +++ b/lib/wolff.h @@ -27,7 +27,7 @@ typedef struct ll_tag { } ll_t; typedef struct { - int32_t nv; + uint32_t nv; double dH; int32_t dM; } cluster_t; @@ -48,5 +48,5 @@ double hh(double th); double *get_bond_probs(double T, double H, ising_state_t *s); -int32_t wolff_step(double T, double H, ising_state_t *s, gsl_rng *r, double *ps); +uint32_t wolff_step(double T, double H, ising_state_t *s, gsl_rng *r, double *ps); -- cgit v1.2.3-70-g09d2