From 0c69763278ed102d0e37aa1fb4feda5827c26c62 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sat, 21 Jul 2018 13:21:49 -0400 Subject: simplified the way that measurements work --- lib/wolff.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/wolff.h') diff --git a/lib/wolff.h b/lib/wolff.h index 21e88d9..4e93d01 100644 --- a/lib/wolff.h +++ b/lib/wolff.h @@ -3,7 +3,7 @@ #include "state.h" template -void wolff(count_t N, state_t *s, std::function *)> gen_R, unsigned int n_measurements, std::function *)> *measurements, gsl_rng *r, bool silent) { +void wolff(count_t N, state_t *s, std::function *)> gen_R, std::function *)> measurements, gsl_rng *r, bool silent) { if (!silent) printf("\n"); for (count_t steps = 0; steps < N; steps++) { @@ -14,9 +14,7 @@ void wolff(count_t N, state_t *s, std::function (s, v0, step, r); free_spin(step); - for (unsigned int i = 0; i < n_measurements; i++) { - measurements[i](s); - } + measurements(s); } if (!silent) { -- cgit v1.2.3-70-g09d2