diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-24 13:12:35 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-07-24 13:12:35 -0400 |
commit | c48fd16fe1554c88c79a1f0d50e81c803da8f61f (patch) | |
tree | 2b8a07de4e0fc795854fc4c1ac0ff095783218fa /src/wolff_potts.cpp | |
parent | 8d96c4d30214a2c27561740b7b3f7e1e3b0bbfe4 (diff) | |
download | c++-c48fd16fe1554c88c79a1f0d50e81c803da8f61f.tar.gz c++-c48fd16fe1554c88c79a1f0d50e81c803da8f61f.tar.bz2 c++-c48fd16fe1554c88c79a1f0d50e81c803da8f61f.zip |
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
Diffstat (limited to 'src/wolff_potts.cpp')
-rw-r--r-- | src/wolff_potts.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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> |