mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
GaugeGrid and typo fixed
This commit is contained in:
parent
0542eaf1da
commit
cdf31d52c1
@ -603,6 +603,7 @@ void WilsonFermion<Impl>::ContractConservedCurrent(PropagatorField &q_in_1,
|
|||||||
conformable(_grid, q_in_1.Grid());
|
conformable(_grid, q_in_1.Grid());
|
||||||
conformable(_grid, q_in_2.Grid());
|
conformable(_grid, q_in_2.Grid());
|
||||||
conformable(_grid, q_out.Grid());
|
conformable(_grid, q_out.Grid());
|
||||||
|
auto UGrid= this->GaugeGrid();
|
||||||
|
|
||||||
PropagatorField tmp_shifted(UGrid);
|
PropagatorField tmp_shifted(UGrid);
|
||||||
PropagatorField g5Lg5(UGrid);
|
PropagatorField g5Lg5(UGrid);
|
||||||
@ -622,18 +623,18 @@ void WilsonFermion<Impl>::ContractConservedCurrent(PropagatorField &q_in_1,
|
|||||||
R=q_in_2;
|
R=q_in_2;
|
||||||
gmuR=gmu*R;
|
gmuR=gmu*R;
|
||||||
|
|
||||||
qout=adj(g5Lg5)*R;
|
q_out=adj(g5Lg5)*R;
|
||||||
qout+=adj(g5Lg5)*gmuR;
|
q_out+=adj(g5Lg5)*gmuR;
|
||||||
|
|
||||||
g5Lg5=g5*q_in_1*g5;
|
g5Lg5=g5*q_in_1*g5;
|
||||||
tmp_shifted=Cshift(q_in_2,mu,1);
|
tmp_shifted=Cshift(q_in_2,mu,1);
|
||||||
Impl::multLinkField(R,this->Umu,tmp_shifted,mu);
|
Impl::multLinkField(R,this->Umu,tmp_shifted,mu);
|
||||||
gmuR=gmu*R;
|
gmuR=gmu*R;
|
||||||
|
|
||||||
qout-=adj(g5Lg5)*R;
|
q_out-=adj(g5Lg5)*R;
|
||||||
qout+=adj(g5Lg5)*gmuR;
|
q_out+=adj(g5Lg5)*gmuR;
|
||||||
|
|
||||||
qout/=2;
|
q_out/=2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user