diff --git a/Grid/qcd/utils/GaugeGroup.h b/Grid/qcd/utils/GaugeGroup.h index 6a407706..d0cdec17 100644 --- a/Grid/qcd/utils/GaugeGroup.h +++ b/Grid/qcd/utils/GaugeGroup.h @@ -350,11 +350,10 @@ class GaugeGroup { template // reunitarise, resimplectify... previously ProjectSUn static void ProjectGn(Lattice >, Nd> > &U, GroupName::SU) { - GridBase *grid = U.Grid(); // Reunitarise for (int mu = 0; mu < Nd; mu++) { auto Umu = PeekIndex(U, mu); - ProjectOnGaugeGroup(Umu); + ProjectGn(Umu); PokeIndex(U, Umu, mu); } } diff --git a/Grid/qcd/utils/SUn.impl b/Grid/qcd/utils/SUn.impl index a8a5210b..0e4b6124 100644 --- a/Grid/qcd/utils/SUn.impl +++ b/Grid/qcd/utils/SUn.impl @@ -515,7 +515,6 @@ static void ProjectOnGaugeGroup(Lattice > template static void ProjectOnGaugeGroup(Lattice >, Nd> > &U, GroupName::SU) { - GridBase *grid = U.Grid(); // Reunitarise for (int mu = 0; mu < Nd; mu++) { auto Umu = PeekIndex(U, mu); diff --git a/Grid/qcd/utils/Sp2n.impl b/Grid/qcd/utils/Sp2n.impl index 75a1af17..77da9ad0 100644 --- a/Grid/qcd/utils/Sp2n.impl +++ b/Grid/qcd/utils/Sp2n.impl @@ -260,7 +260,6 @@ static void ProjectOnGaugeGroup(Lattice > template static void ProjectOnGaugeGroup(Lattice >, Nd> > &U, GroupName::Sp) { - GridBase *grid = U.Grid(); // Reunitarise for (int mu = 0; mu < Nd; mu++) { auto Umu = PeekIndex(U, mu);