summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-26 01:17:53 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-07-26 01:17:53 -0400
commit94f7d887981f0626f166f5645fa98115d4f9a478 (patch)
treeb5653f58f288a9619dc82d3ac5867dfd5c89ad45 /src
parentd3b3e39a525d0c3aa9663f824ba96e0c429a8313 (diff)
downloadc++-94f7d887981f0626f166f5645fa98115d4f9a478.tar.gz
c++-94f7d887981f0626f166f5645fa98115d4f9a478.tar.bz2
c++-94f7d887981f0626f166f5645fa98115d4f9a478.zip
everything compiles now, and fixed a major bug in the graph code
Diffstat (limited to 'src')
-rw-r--r--src/wolff_clock.cpp4
1 files changed, 2 insertions, 2 deletions
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<POTTSQ> tmp_s = act_inverse(s->R, s->spins[i]);