1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-24 12:45:56 +01:00

Use Integer

This commit is contained in:
Peter Boyle 2021-05-11 13:52:05 -04:00
parent 0bade717bf
commit a36e797bfc

View File

@ -59,7 +59,7 @@ void copy2fTo1fFermionField(FermionField1f &out, const FermionField2f &in, int g
LatticeInteger xcoor_1f(out.Grid()); //5d lattice integer LatticeInteger xcoor_1f(out.Grid()); //5d lattice integer
LatticeCoordinate(xcoor_1f,gpdir); LatticeCoordinate(xcoor_1f,gpdir);
int L = dim_2f[gpdir]; Integer L = dim_2f[gpdir];
out = where(xcoor_1f < L, f0_fullgrid_dbl, f1_fullgrid_dbl); out = where(xcoor_1f < L, f0_fullgrid_dbl, f1_fullgrid_dbl);
} }
@ -76,7 +76,7 @@ void copy2fTo1fGaugeField(LatticeGaugeField &out, const LatticeGaugeField &in, i
LatticeInteger xcoor_1f(out.Grid()); LatticeInteger xcoor_1f(out.Grid());
LatticeCoordinate(xcoor_1f,gpdir); LatticeCoordinate(xcoor_1f,gpdir);
int L = dim_2f[gpdir]; Integer L = dim_2f[gpdir];
out = where(xcoor_1f < L, U_dbl, Uconj_dbl); out = where(xcoor_1f < L, U_dbl, Uconj_dbl);
} }