mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
5d OpDir direction interface refers to the 5d dims, not 4d to present a
sensible and consistent external interface.
This commit is contained in:
parent
3a52bc4ce1
commit
4963f7356a
@ -72,6 +72,7 @@ namespace QCD {
|
|||||||
}
|
}
|
||||||
void WilsonFermion5D::DoubleStore(LatticeDoubledGaugeField &Uds,const LatticeGaugeField &Umu)
|
void WilsonFermion5D::DoubleStore(LatticeDoubledGaugeField &Uds,const LatticeGaugeField &Umu)
|
||||||
{
|
{
|
||||||
|
assert(GaugeGrid()->_ndimension==4);
|
||||||
conformable(Uds._grid,GaugeGrid());
|
conformable(Uds._grid,GaugeGrid());
|
||||||
conformable(Umu._grid,GaugeGrid());
|
conformable(Umu._grid,GaugeGrid());
|
||||||
LatticeColourMatrix U(GaugeGrid());
|
LatticeColourMatrix U(GaugeGrid());
|
||||||
@ -82,8 +83,10 @@ void WilsonFermion5D::DoubleStore(LatticeDoubledGaugeField &Uds,const LatticeGau
|
|||||||
pokeIndex<LorentzIndex>(Uds,U,mu+4);
|
pokeIndex<LorentzIndex>(Uds,U,mu+4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void WilsonFermion5D::DhopDir(const LatticeFermion &in, LatticeFermion &out,int dir,int disp)
|
void WilsonFermion5D::DhopDir(const LatticeFermion &in, LatticeFermion &out,int dir5,int disp)
|
||||||
{
|
{
|
||||||
|
int dir = dir5-1; // Maps to the ordering above in "directions" that is passed to stencil
|
||||||
|
// we drop off the innermost fifth dimension
|
||||||
assert( (disp==1)||(disp==-1) );
|
assert( (disp==1)||(disp==-1) );
|
||||||
assert( (dir>=0)&&(dir<4) ); //must do x,y,z or t;
|
assert( (dir>=0)&&(dir<4) ); //must do x,y,z or t;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user