diff options
Diffstat (limited to 'examples/src/models/ising/wolff_ising.cpp')
-rw-r--r-- | examples/src/models/ising/wolff_ising.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/src/models/ising/wolff_ising.cpp b/examples/src/models/ising/wolff_ising.cpp index 5bdaa82..f7a3ada 100644 --- a/examples/src/models/ising/wolff_ising.cpp +++ b/examples/src/models/ising/wolff_ising.cpp @@ -151,7 +151,11 @@ int main(int argc, char *argv[]) { other_f = [] (const state_t <z2_t, ising_t>& s) { glClear(GL_COLOR_BUFFER_BIT); for (v_t i = 0; i < pow(s.L, 2); i++) { +#ifdef NOFIELD + if (s.spins[i].x == false) { +#else if (s.spins[i].x == s.R.x) { +#endif glColor3f(0.0, 0.0, 0.0); } else { glColor3f(1.0, 1.0, 1.0); |