X-Git-Url: http://git.treefish.org/~alex/phys/heatbath.git/blobdiff_plain/dca762861c66d8782be31811822812d347ee4577..3c0d4377f0e0c7ed6df154aaf0b7cdf7442571af:/sim-1mr-.hpp diff --git a/sim-1mr-.hpp b/sim-1mr-.hpp index 00e15be..01701b9 100644 --- a/sim-1mr-.hpp +++ b/sim-1mr-.hpp @@ -53,10 +53,8 @@ void sim::updatePhi (const int& x) - 1./M * norm(V) + 2 * real( conf[x].phi * conj(V) ) ); - double oldarg = arg(conf[x].phi); - conf[x].phi = sqrt(std::log( 1./(1-r) )) / sqrt(M) - * polar(1.0, oldarg) + * polar( 1.0, arg(conf[x].phi) ) + V / M; }