diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-10-14 20:54:01 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2018-10-14 20:54:01 -0400 |
commit | 6e8b19e1f1a244ef09e1b63d7593250d6ce01692 (patch) | |
tree | 4c7e177f71020884711d804babf2e1550f18d748 /examples/src/models/On | |
parent | 4b8f4005c30f5ad66408216f4ef78f75ad08741f (diff) | |
download | c++-6e8b19e1f1a244ef09e1b63d7593250d6ce01692.tar.gz c++-6e8b19e1f1a244ef09e1b63d7593250d6ce01692.tar.bz2 c++-6e8b19e1f1a244ef09e1b63d7593250d6ce01692.zip |
added site and bond dependence, activated by compiler flags
Diffstat (limited to 'examples/src/models/On')
-rw-r--r-- | examples/src/models/On/wolff_On.cpp | 4 |
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; |