summaryrefslogtreecommitdiff
path: root/examples/src/models/On
diff options
context:
space:
mode:
Diffstat (limited to 'examples/src/models/On')
-rw-r--r--examples/src/models/On/wolff_On.cpp4
1 files changed, 4 insertions, 0 deletions
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;