1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-12 20:27:06 +01:00

HMC for Wilson Gauge action works

Fixed bug in momenta generation
This commit is contained in:
neo
2015-07-06 12:58:49 +09:00
parent 0ffcdf6204
commit 808f5820fa
9 changed files with 24 additions and 40 deletions

View File

@ -545,21 +545,21 @@ Note that in step D setting B ~ X - A and using B in place of A in step E will g
static void GaussianLieAlgebraMatrix(GridParallelRNG &pRNG,LatticeMatrix &out,double scale=1.0){
GridBase *grid = out._grid;
LatticeComplex ca (grid);
LatticeMatrix lie(grid);
LatticeReal ca (grid);
LatticeMatrix la (grid);
Complex ci(0.0,scale);
Matrix ta;
out=zero;
for(int a=0;a<generators();a++){
gaussian(pRNG,ca);
generator(a,ta);
la=ci*ca*ta;
out = lie+la; // e^{i la ta}
la=toComplex(ca)*ci*ta;
out += la;
}
}