diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2017-06-21 17:29:10 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2017-06-21 17:29:10 -0400 |
commit | f2639be5d5006079868f69b0c7105a066166bec6 (patch) | |
tree | 5dcbc9802f6f34f6f0f6488c47d4f5486bca3b40 /src/wolff.h | |
parent | f036a7fc75752b362eb17fe55b2a05376a0bb09f (diff) | |
download | c++-f2639be5d5006079868f69b0c7105a066166bec6.tar.gz c++-f2639be5d5006079868f69b0c7105a066166bec6.tar.bz2 c++-f2639be5d5006079868f69b0c7105a066166bec6.zip |
fixed bug related to counting number of full cluster flips, and added support for choosing other lattices
Diffstat (limited to 'src/wolff.h')
-rw-r--r-- | src/wolff.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wolff.h b/src/wolff.h index 9b2599f..cec9ee3 100644 --- a/src/wolff.h +++ b/src/wolff.h @@ -27,8 +27,9 @@ typedef struct ll_tag { } ll_t; typedef struct { - int32_t nv; + uint32_t nv; double dH; + int32_t dM; } cluster_t; double get_hamiltonian(graph_t *g, double *coupling, bool *x); @@ -47,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); |