From 6f388da54cc67e5fbc10c2e8ae78ad28a5f053dd Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Mon, 25 Nov 2013 15:10:34 +0100 Subject: [PATCH] ... --- sim-1mr+.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.39.5