mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
sign error on the 4d gparity force
This commit is contained in:
parent
4908b77d46
commit
fad5c675eb
@ -452,10 +452,10 @@ PARALLEL_FOR_LOOP
|
|||||||
// DhopDir provides U or Uconj depending on coor/flavour.
|
// DhopDir provides U or Uconj depending on coor/flavour.
|
||||||
GaugeLinkField link(mat._grid);
|
GaugeLinkField link(mat._grid);
|
||||||
// use lorentz for flavour as hack.
|
// use lorentz for flavour as hack.
|
||||||
auto tmp = TraceIndex<SpinIndex>(outerProduct(Btilde,A));
|
|
||||||
PARALLEL_FOR_LOOP
|
PARALLEL_FOR_LOOP
|
||||||
for(auto ss=tmp.begin();ss<tmp.end();ss++){
|
for(auto ss=link.begin();ss<link.end();ss++){
|
||||||
link[ss]() = tmp[ss](0,0) - conjugate(tmp[ss](1,1)) ; // IS THIS SIGN RIGHT?
|
auto ttmp = traceIndex<SpinIndex>(outerProduct(Btilde[ss],A[ss]));
|
||||||
|
link[ss]() = ttmp(0,0) + conjugate(ttmp(1,1)) ;
|
||||||
}
|
}
|
||||||
PokeIndex<LorentzIndex>(mat,link,mu);
|
PokeIndex<LorentzIndex>(mat,link,mu);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user