From c48fd16fe1554c88c79a1f0d50e81c803da8f61f Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 24 Jul 2018 13:12:35 -0400 Subject: implemented updating the first fourier moment in wolff_finite, but also make wolff_finite obselete by adding a hacky preprocessor method for making wolff.h as efficient --- src/wolff_potts.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/wolff_potts.cpp') diff --git a/src/wolff_potts.cpp b/src/wolff_potts.cpp index e3259e4..6b6f602 100644 --- a/src/wolff_potts.cpp +++ b/src/wolff_potts.cpp @@ -10,6 +10,11 @@ #include #include +#define N_STATES POTTSQ +const potts_t states[8] = {0, 1, 2, 3, 4, 5, 6, 7}; +q_t state_to_ind(potts_t state) { return (q_t)state.x; } +#include + // include wolff.h #include #include -- cgit v1.2.3-70-g09d2