From 6e8b19e1f1a244ef09e1b63d7593250d6ce01692 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sun, 14 Oct 2018 20:54:01 -0400 Subject: added site and bond dependence, activated by compiler flags --- examples/src/models/On/wolff_On.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/src/models/On') diff --git a/examples/src/models/On/wolff_On.cpp b/examples/src/models/On/wolff_On.cpp index e3568c7..ad2ac77 100644 --- a/examples/src/models/On/wolff_On.cpp +++ b/examples/src/models/On/wolff_On.cpp @@ -212,7 +212,11 @@ int main(int argc, char *argv[]) { other_f = [&] (const On_t& s) { glClear(GL_COLOR_BUFFER_BIT); for (v_t i = 0; i < pow(L, 2); i++) { +#ifdef NOFIELD + vector_R_t v_tmp = s.spins[i]; +#else vector_R_t v_tmp = s.R.act_inverse(s.spins[i]); +#endif double thetai = fmod(2 * M_PI + theta(v_tmp), 2 * M_PI); double saturation = 0.7; double value = 0.9; -- cgit v1.2.3-70-g09d2