From d3b3e39a525d0c3aa9663f824ba96e0c429a8313 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 26 Jul 2018 00:32:38 -0400 Subject: partially class-ified, ising and On work but potts and height do not --- src/wolff_On.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/wolff_On.cpp b/src/wolff_On.cpp index 3da6c7c..15a9553 100644 --- a/src/wolff_On.cpp +++ b/src/wolff_On.cpp @@ -20,8 +20,8 @@ typedef state_t On_t; // angle from the x-axis of a two-vector double theta(vector_R_t v) { - double x = v.x[0]; - double y = v.x[1]; + double x = v[0]; + double y = v[1]; double val = atan(y / x); @@ -191,7 +191,6 @@ int main(int argc, char *argv[]) { for (v_t i = 0; i < pow(L, 2); i++) { vector_R_t v_tmp = act_inverse(s->R, s->spins[i]); double thetai = fmod(2 * M_PI + theta(v_tmp), 2 * M_PI); - free_spin(v_tmp); double saturation = 0.7; double value = 0.9; double chroma = saturation * value; -- cgit v1.2.3-70-g09d2