diff options
Diffstat (limited to 'lib/ising.h')
-rw-r--r-- | lib/ising.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; } + |