From: Alexander Schmidt Date: Mon, 25 Nov 2013 14:10:34 +0000 (+0100) Subject: ... X-Git-Url: http://git.treefish.org/~alex/phys/heatbath.git/commitdiff_plain/6f388da54cc67e5fbc10c2e8ae78ad28a5f053dd ... --- diff --git a/sim-1mr+.hpp b/sim-1mr+.hpp index 4c70b47..2b14149 100644 --- a/sim-1mr+.hpp +++ b/sim-1mr+.hpp @@ -44,7 +44,6 @@ sim::sim(o815 *_O815) : o815::sim( _O815, void sim::updatePhi (const int& x) { complex V=0; - const double theta = gsl_rng_uniform(rangsl) * 2*M_PI; for (int nu=0; nu<4; nu++) V += conf[ (*nb)[x*4+nu] ].phi; @@ -59,7 +58,7 @@ void sim::updatePhi (const int& x) + 2 * real( conf[x].phi * conj(V) ) ); conf[x].phi = sqrt(std::log( 1./(1-r) )) / sqrt(M) - * polar(1.0,theta) + * polar( 1.0, arg(conf[x].phi) ) + V / M; }