From 94f7d887981f0626f166f5645fa98115d4f9a478 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 26 Jul 2018 01:17:53 -0400 Subject: everything compiles now, and fixed a major bug in the graph code --- src/wolff_clock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/wolff_clock.cpp b/src/wolff_clock.cpp index 86badfe..e186c44 100644 --- a/src/wolff_clock.cpp +++ b/src/wolff_clock.cpp @@ -107,7 +107,7 @@ int main(int argc, char *argv[]) { if (!draw) { // a very simple example: measure the average magnetization measurement = [&] (const sim_t *s) { - average_M += (double)s->M.x[0] / (double)N / (double)s->nv; + average_M += (double)s->M[0] / (double)N / (double)s->nv; }; } else { // a more complex example: measure the average magnetization, and draw the spin configuration to the screen @@ -124,7 +124,7 @@ int main(int argc, char *argv[]) { gluOrtho2D(0.0, L, 0.0, L); measurement = [&] (const sim_t *s) { - average_M += (double)s->M.x[0] / (double)N / (double)s->nv; + average_M += (double)s->M[0] / (double)N / (double)s->nv; glClear(GL_COLOR_BUFFER_BIT); for (v_t i = 0; i < pow(L, 2); i++) { potts_t tmp_s = act_inverse(s->R, s->spins[i]); -- cgit v1.2.3-70-g09d2