From 96e878d2f69790dc72bb4b713c1d492fa2b4c587 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 24 Jul 2018 15:26:31 -0400 Subject: added preprocessor method for potts, and implemented dihedral for the c++ stuff --- lib/ising.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/ising.h') diff --git a/lib/ising.h b/lib/ising.h index d956d88..ec392bf 100644 --- a/lib/ising.h +++ b/lib/ising.h @@ -93,3 +93,7 @@ void write_magnetization(int M, FILE *outfile) { fwrite(&M, sizeof(int), 1, outfile); } +#define N_STATES 2 +const ising_t states[2] = {(bool)0, (bool)1}; +q_t state_to_ind(ising_t state) { return (q_t)state.x; } + -- cgit v1.2.3-70-g09d2