X-Git-Url: http://git.treefish.org/~alex/phys/heatbath.git/blobdiff_plain/0f8b9f29fdcc92049803e88be1c9524d6d0d6fab..274a66cdb22fd36ea8cbbc373783d848f1ba253e:/sim-r.hpp?ds=sidebyside diff --git a/sim-r.hpp b/sim-r.hpp index 0cbce5e..c3b6888 100644 --- a/sim-r.hpp +++ b/sim-r.hpp @@ -51,7 +51,7 @@ void sim::updatePhi (const int& x) V += conf[ (*nb)[x*4+nu] ].phi; conf[x].phi = sqrt(std::log( 1./(1-r) )) / sqrt(M) - * complex( cos(theta), sin(theta) ) + * polar(1.0, theta) + V / M; }