diff --git a/Grid/qcd/action/gauge/GaugeImplTypes.h b/Grid/qcd/action/gauge/GaugeImplTypes.h index 17bee86a..e2d98b85 100644 --- a/Grid/qcd/action/gauge/GaugeImplTypes.h +++ b/Grid/qcd/action/gauge/GaugeImplTypes.h @@ -133,19 +133,6 @@ public: static inline Field projectForce(Field &P) { - /* // this works - iScalar > > gen; - auto Psum = P; - Psum = Zero(); - for (int a = 0; a < Group::AlgebraDimension; a++) - { - Group::generator(a, gen); - auto coeff = 2. * trace(P * gen); - Psum += coeff * gen; - - - return Psum;}*/ - //this doesnt Field ret(P.Grid()); Group::taProj(P, ret); return ret; @@ -159,7 +146,7 @@ public: autoView(P_v,P,AcceleratorRead); accelerator_for(ss, P.Grid()->oSites(),1,{ for (int mu = 0; mu < Nd; mu++) { - U_v[ss](mu) = Exponentiate(P_v[ss](mu), ep, Nexp) * U_v[ss](mu); // + U_v[ss](mu) = Exponentiate(P_v[ss](mu), ep, Nexp) * U_v[ss](mu); Group::ProjectOnGaugeGroup(U_v[ss](mu)); } }); @@ -206,9 +193,9 @@ typedef GaugeImplTypes GimplTypesR; typedef GaugeImplTypes GimplTypesF; typedef GaugeImplTypes GimplTypesD; -typedef GaugeImplTypes> SymplGimplTypesR; -typedef GaugeImplTypes> SymplGimplTypesF; -typedef GaugeImplTypes> SymplGimplTypesD; +typedef GaugeImplTypes > SymplGimplTypesR; +typedef GaugeImplTypes > SymplGimplTypesF; +typedef GaugeImplTypes > SymplGimplTypesD; typedef GaugeImplTypes::AdjointDimension> GimplAdjointTypesR; typedef GaugeImplTypes::AdjointDimension> GimplAdjointTypesF; diff --git a/Grid/qcd/utils/GaugeGroup.h b/Grid/qcd/utils/GaugeGroup.h index 8e6c5ee4..0e8fbabe 100644 --- a/Grid/qcd/utils/GaugeGroup.h +++ b/Grid/qcd/utils/GaugeGroup.h @@ -170,7 +170,7 @@ class GaugeGroup { } } - template + template static void LieRandomize(GridParallelRNG &pRNG, LatticeMatrixType &out, double scale = 1.0) { GridBase *grid = out.Grid(); diff --git a/tests/core/Test_reunitarise.cc b/tests/core/Test_reunitarise.cc index e421a2a8..110ebabf 100644 --- a/tests/core/Test_reunitarise.cc +++ b/tests/core/Test_reunitarise.cc @@ -122,15 +122,16 @@ int main (int argc, char ** argv) detU=detU-1.0; std::cout << "Determinant defect before projection " <gSites(); @@ -118,7 +119,7 @@ int main (int argc, char **argv) std::cout << GridLogMessage << "Testing ProjectOnGaugeGroup" << std::endl; - U = U + 2932.111*identity; + U = U + Delta*identity; std::cout << GridLogMessage << "Apply ProjectOnGaugeGroup to deformed matrix" << std::endl; Sp::ProjectOnGaugeGroup(U); aux = U*adj(U) - identity; @@ -162,7 +163,7 @@ int main (int argc, char **argv) } std::cout << GridLogMessage << "Testing ProjectGn" << std::endl; - U = U + 2932.111*identity; + U = U + Delta*identity; std::cout << GridLogMessage << "Apply ProjectGn to deformed matrix" << std::endl; Sp::ProjectGn(U); aux = U*adj(U) - identity; @@ -214,7 +215,7 @@ int main (int argc, char **argv) std::cout << GridLogMessage << "Testing SpTa" << std::endl; U = PeekIndex(Umu,1); - U = U + 666.*identity; + U = U + Delta*identity; std::cout << GridLogMessage << "Matrix deformed " << std::endl; std::cout << GridLogMessage << "Apply SpTa to deformed matrix" << std::endl; U = SpTa(U); @@ -279,7 +280,7 @@ int main (int argc, char **argv) // test taProj std::cout << GridLogMessage << "Testing taProj" << std::endl; - U = U + 666.*identity; + U = U + Delta*identity; std::cout << GridLogMessage << "Matrix deformed " << std::endl; std::cout << GridLogMessage << "Apply taProj to deformed matrix" << std::endl; Sp::taProj(U, Up); @@ -333,10 +334,7 @@ int main (int argc, char **argv) assert( amizeroo.real() < 10e-6 ); } } - - + Grid_finalize(); - } -