summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-24 15:26:31 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-24 15:26:31 -0400
commit96e878d2f69790dc72bb4b713c1d492fa2b4c587 (patch)
tree9b8dd7d0f2e448646bbeb74b8c943532d3650fe4 /src
parentc48fd16fe1554c88c79a1f0d50e81c803da8f61f (diff)
downloadc++-96e878d2f69790dc72bb4b713c1d492fa2b4c587.tar.gz
c++-96e878d2f69790dc72bb4b713c1d492fa2b4c587.tar.bz2
c++-96e878d2f69790dc72bb4b713c1d492fa2b4c587.zip
added preprocessor method for potts, and implemented dihedral for the c++ stuff
Diffstat (limited to 'src')
-rw-r--r--src/wolff_ising.cpp3
-rw-r--r--src/wolff_potts.cpp3
2 files changed, 1 insertions, 5 deletions
diff --git a/src/wolff_ising.cpp b/src/wolff_ising.cpp
index f614707..7492ebf 100644
--- a/src/wolff_ising.cpp
+++ b/src/wolff_ising.cpp
@@ -8,9 +8,6 @@
#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
diff --git a/src/wolff_potts.cpp b/src/wolff_potts.cpp
index 6b6f602..f8f1523 100644
--- a/src/wolff_potts.cpp
+++ b/src/wolff_potts.cpp
@@ -10,9 +10,8 @@
#include <potts.h>
#include <colors.h>
+// hack to speed things up considerably
#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