diff --git a/Grid/qcd/action/fermion/StaggeredVec5dImpl.h b/Grid/qcd/action/fermion/StaggeredVec5dImpl.h index 5294af20..2d4de18e 100644 --- a/Grid/qcd/action/fermion/StaggeredVec5dImpl.h +++ b/Grid/qcd/action/fermion/StaggeredVec5dImpl.h @@ -114,7 +114,7 @@ public: inline void InsertGaugeField(DoubledGaugeField &U_ds,const GaugeLinkField &U,int mu) { GridBase *GaugeGrid = U_ds.Grid(); - thread_loop( (int lidx = 0; lidx < GaugeGrid->lSites(); lidx++), { + thread_for(lidx, GaugeGrid->lSites(),{ SiteScalarGaugeLink ScalarU; SiteDoubledGaugeField ScalarUds;