summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wolff_ising.cpp5
-rw-r--r--src/wolff_potts.cpp5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/wolff_ising.cpp b/src/wolff_ising.cpp
index 9866248..f614707 100644
--- a/src/wolff_ising.cpp
+++ b/src/wolff_ising.cpp
@@ -8,6 +8,11 @@
#include <z2.h>
#include <ising.h>
+#define N_STATES 2
+const ising_t states[N_STATES] = {false, true};
+q_t state_to_ind(ising_t state) { return (q_t)state.x; }
+#include <finite_states.h>
+
// include wolff.h
#include <rand.h>
#include <wolff.h>
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 <potts.h>
#include <colors.h>
+#define N_STATES POTTSQ
+const potts_t<POTTSQ> states[8] = {0, 1, 2, 3, 4, 5, 6, 7};
+q_t state_to_ind(potts_t<POTTSQ> state) { return (q_t)state.x; }
+#include <finite_states.h>
+
// include wolff.h
#include <rand.h>
#include <wolff.h>