summaryrefslogtreecommitdiff
path: root/lib/wolff.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wolff.h')
-rw-r--r--lib/wolff.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/wolff.h b/lib/wolff.h
deleted file mode 100644
index 141a5b2..0000000
--- a/lib/wolff.h
+++ /dev/null
@@ -1,33 +0,0 @@
-
-#include "cluster.h"
-#include "state.h"
-
-template <class R_t, class X_t>
-void wolff(count_t N, state_t <R_t, X_t>& s, std::function <R_t(gsl_rng *, X_t s0)> gen_R, std::function <void(const state_t <R_t, X_t>&)> measurements, gsl_rng *r, bool silent) {
-
-#ifdef FINITE_STATES
-#ifdef NOFIELD
- initialize_probs(s.J, s.T);
-#else
- initialize_probs(s.J, s.H, s.T);
-#endif
-#endif
-
- if (!silent) printf("\n");
- for (count_t steps = 0; steps < N; steps++) {
- if (!silent) printf("\033[F\033[JWOLFF: step %" PRIu64 " / %" PRIu64 ": E = %.2f, S = %" PRIv "\n", steps, N, s.E, s.last_cluster_size);
-
- v_t v0 = gsl_rng_uniform_int(r, s.nv);
- R_t step = gen_R(r, s.spins[v0]);
- flip_cluster <R_t, X_t> (s, v0, step, r);
-
- measurements(s);
- }
-
- if (!silent) {
- printf("\033[F\033[J");
- }
- printf("WOLFF: step %" PRIu64 " / %" PRIu64 ": E = %.2f, S = %" PRIv "\n", N, N, s.E, s.last_cluster_size);
-
-}
-