summaryrefslogtreecommitdiff
path: root/lib/wolff.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wolff.h')
-rw-r--r--lib/wolff.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/wolff.h b/lib/wolff.h
index 498f7f3..141a5b2 100644
--- a/lib/wolff.h
+++ b/lib/wolff.h
@@ -6,8 +6,12 @@ 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++) {