From 2ebf2f181edac37bfb932dbb353101e37e97223a Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sun, 16 Feb 2020 21:02:25 -0500 Subject: More work on new transformations, and animation of cluster formation --- space_wolff.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'space_wolff.hpp') diff --git a/space_wolff.hpp b/space_wolff.hpp index 63bf118..dc06011 100644 --- a/space_wolff.hpp +++ b/space_wolff.hpp @@ -18,11 +18,10 @@ template class Model; template class measurement { public: - virtual void pre_cluster(const Model&, unsigned, const R&){}; + virtual void pre_cluster(const Model&, unsigned, const Transformation, double>*){}; virtual void plain_bond_visited(const Model&, const Spin*, const Spin*, const Spin&, double){}; - virtual void plain_site_transformed(const Model&, const Spin*, - const Spin&){}; + virtual void plain_site_transformed(const Model&, const Transformation&){}; virtual void ghost_bond_visited(const Model&, const Spin&, const Spin&, double){}; @@ -70,6 +69,7 @@ public: } } + A.plain_site_transformed(*this, *t); t->apply(); } delete t; @@ -84,6 +84,8 @@ public: Gen& g = rng.pick(gs); Transformation *t = g(*this, rng); + A.pre_cluster(*this, i, t); + this->step(T, t, A); A.post_cluster(*this); -- cgit v1.2.3-70-g09d2