]> git.treefish.org Git - phys/heatbath.git/blobdiff - sim-1mr.hpp
Added mpi to include path.
[phys/heatbath.git] / sim-1mr.hpp
index beadd7d55bdcc626f735110277899a05c6d15761..d03ef224b33e735201abf9771b9da489b7d97cb1 100644 (file)
@@ -54,7 +54,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)
-    * complex<double>( cos(theta), sin(theta) )
+    * polar(1.0, theta)
     + V / M;
 }