diff --git a/tests/hadrons/Test_diskvector.cc b/tests/hadrons/Test_diskvector.cc index 10bc4db1..9ec97a22 100644 --- a/tests/hadrons/Test_diskvector.cc +++ b/tests/hadrons/Test_diskvector.cc @@ -28,7 +28,6 @@ See the full license in the file "LICENSE" in the top level distribution directo #include using namespace Grid; -using namespace Grid::QCD; using namespace Grid::Hadrons; GRID_SERIALIZABLE_ENUM(Enum, undef, red, 1, blue, 2, green, 3); diff --git a/tests/hmc/Test_hmc_Mobius2p1f.cc b/tests/hmc/Test_hmc_Mobius2p1f.cc index 253727d2..508f5b5e 100644 --- a/tests/hmc/Test_hmc_Mobius2p1f.cc +++ b/tests/hmc/Test_hmc_Mobius2p1f.cc @@ -31,7 +31,6 @@ directory int main(int argc, char **argv) { using namespace Grid; - using namespace Grid::QCD; Grid_init(&argc, &argv); int threads = GridThread::GetThreads(); diff --git a/tests/qdpxx/Test_qdpxx_loops_staples.cc b/tests/qdpxx/Test_qdpxx_loops_staples.cc index 53202a4d..bbb41f4e 100644 --- a/tests/qdpxx/Test_qdpxx_loops_staples.cc +++ b/tests/qdpxx/Test_qdpxx_loops_staples.cc @@ -27,15 +27,15 @@ Author: Azusa Yamaguchi /* END LEGAL */ #include -double calc_grid_p (Grid::QCD::LatticeGaugeField & lat); -double calc_chroma_p (Grid::QCD::LatticeGaugeField & lat); -double calc_grid_r (Grid::QCD::LatticeGaugeField & lat); -double calc_grid_IW (Grid::QCD::LatticeGaugeField & lat); -double calc_grid_r_dir (Grid::QCD::LatticeGaugeField & lat); -double calc_chroma_r (Grid::QCD::LatticeGaugeField & lat); -double calc_chroma_IW (Grid::QCD::LatticeGaugeField & lat); -void check_grid_r_staple(Grid::QCD::LatticeGaugeField & Umu); -void check_grid_p_staple(Grid::QCD::LatticeGaugeField & Umu); +double calc_grid_p (Grid::LatticeGaugeField & lat); +double calc_chroma_p (Grid::LatticeGaugeField & lat); +double calc_grid_r (Grid::LatticeGaugeField & lat); +double calc_grid_IW (Grid::LatticeGaugeField & lat); +double calc_grid_r_dir (Grid::LatticeGaugeField & lat); +double calc_chroma_r (Grid::LatticeGaugeField & lat); +double calc_chroma_IW (Grid::LatticeGaugeField & lat); +void check_grid_r_staple(Grid::LatticeGaugeField & Umu); +void check_grid_p_staple(Grid::LatticeGaugeField & Umu); const double beta=2.6; const double c1=-0.331; @@ -53,10 +53,10 @@ public: typedef multi1d U; - static void ImportGauge(Grid::QCD::LatticeGaugeField & gr, + static void ImportGauge(Grid::LatticeGaugeField & gr, QDP::multi1d & ch) { - Grid::QCD::LorentzColourMatrix LCM; + Grid::LorentzColourMatrix LCM; Grid::Complex cc; QDP::ColorMatrix cm; QDP::Complex c; @@ -127,9 +127,9 @@ int main (int argc,char **argv ) * Setup Grid *********************************************************/ Grid::Grid_init(&argc,&argv); - Grid::GridCartesian * UGrid = Grid::QCD::SpaceTimeGrid::makeFourDimGrid(Grid::GridDefaultLatt(), - Grid::GridDefaultSimd(Grid::QCD::Nd,Grid::vComplex::Nsimd()), - Grid::GridDefaultMpi()); + Grid::GridCartesian * UGrid = Grid::SpaceTimeGrid::makeFourDimGrid(Grid::GridDefaultLatt(), + Grid::GridDefaultSimd(Grid::Nd,Grid::vComplex::Nsimd()), + Grid::GridDefaultMpi()); std::vector gd = UGrid->GlobalDimensions(); QDP::multi1d nrow(QDP::Nd); @@ -138,7 +138,7 @@ int main (int argc,char **argv ) QDP::Layout::setLattSize(nrow); QDP::Layout::create(); - Grid::QCD::LatticeGaugeField lat(UGrid); + Grid::LatticeGaugeField lat(UGrid); double s_grid = calc_grid_p (lat); @@ -181,7 +181,7 @@ int main (int argc,char **argv ) Chroma::finalize(); } -double calc_chroma_IW(Grid::QCD::LatticeGaugeField & lat) +double calc_chroma_IW(Grid::LatticeGaugeField & lat) { typedef QDP::multi1d U; @@ -203,7 +203,7 @@ double calc_chroma_IW(Grid::QCD::LatticeGaugeField & lat) return s; } -double calc_chroma_r(Grid::QCD::LatticeGaugeField & lat) +double calc_chroma_r(Grid::LatticeGaugeField & lat) { typedef QDP::multi1d U; @@ -245,7 +245,7 @@ double calc_chroma_r(Grid::QCD::LatticeGaugeField & lat) // action = beta * Nd*Nd-1*vol*0.5 - beta * Nd*Nd-1*vol*0.5*plaq // // plaq == sumplaq * 2/(V*Nd*(Nd-1)*Nc) -double calc_chroma_p(Grid::QCD::LatticeGaugeField & lat) +double calc_chroma_p(Grid::LatticeGaugeField & lat) { typedef QDP::multi1d U; @@ -270,60 +270,60 @@ double calc_chroma_p(Grid::QCD::LatticeGaugeField & lat) -double calc_grid_p(Grid::QCD::LatticeGaugeField & Umu) +double calc_grid_p(Grid::LatticeGaugeField & Umu) { std::vector seeds4({1,2,3,4}); Grid::GridCartesian * UGrid = (Grid::GridCartesian *) Umu.Grid(); Grid::GridParallelRNG RNG4(UGrid); RNG4.SeedFixedIntegers(seeds4); - Grid::QCD::SU3::HotConfiguration(RNG4,Umu); + Grid::SU3::HotConfiguration(RNG4,Umu); - Grid::QCD::LatticeColourMatrix tmp(UGrid); + Grid::LatticeColourMatrix tmp(UGrid); tmp = Grid::zero; - Grid::QCD::PokeIndex(Umu,tmp,2); - Grid::QCD::PokeIndex(Umu,tmp,3); + Grid::PokeIndex(Umu,tmp,2); + Grid::PokeIndex(Umu,tmp,3); - Grid::QCD::WilsonGaugeActionR Wilson(beta); // Just take beta = 1.0 + Grid::WilsonGaugeActionR Wilson(beta); // Just take beta = 1.0 return Wilson.S(Umu); } -double calc_grid_r(Grid::QCD::LatticeGaugeField & Umu) +double calc_grid_r(Grid::LatticeGaugeField & Umu) { Grid::GridCartesian * UGrid = (Grid::GridCartesian *) Umu.Grid(); - Grid::QCD::PlaqPlusRectangleActionR Wilson(0.0,c1); // Just take beta = 0.0 + Grid::PlaqPlusRectangleActionR Wilson(0.0,c1); // Just take beta = 0.0 return Wilson.S(Umu); } -double calc_grid_IW(Grid::QCD::LatticeGaugeField & Umu) +double calc_grid_IW(Grid::LatticeGaugeField & Umu) { Grid::GridCartesian * UGrid = (Grid::GridCartesian *) Umu.Grid(); - Grid::QCD::IwasakiGaugeActionR Iwasaki(beta); + Grid::IwasakiGaugeActionR Iwasaki(beta); return Iwasaki.S(Umu); } -double calc_grid_r_dir(Grid::QCD::LatticeGaugeField & Umu) +double calc_grid_r_dir(Grid::LatticeGaugeField & Umu) { Grid::GridCartesian * UGrid = (Grid::GridCartesian *) Umu.Grid(); - std::vector U(4,UGrid); + std::vector U(4,UGrid); for(int mu=0;mu(Umu,mu); } - Grid::QCD::LatticeComplex rect(UGrid); - Grid::QCD::TComplex trect; - Grid::QCD::Complex crect; + Grid::LatticeComplex rect(UGrid); + Grid::TComplex trect; + Grid::Complex crect; Grid::RealD rrect; Grid::RealD vol = UGrid->gSites(); - for(int mu=0;mu|| - // Grid::adj(Grid::QCD::PeriodicBC::CovShiftForward(U[nu],nu,Grid::QCD::PeriodicBC::CovShiftForward(U[nu],nu,U[mu]))) ; - Stap = Grid::Cshift(Grid::QCD::PeriodicBC::CovShiftForward(U[nu],nu, - Grid::QCD::PeriodicBC::CovShiftForward(U[nu],nu, - Grid::QCD::PeriodicBC::CovShiftBackward(U[mu],mu, - Grid::QCD::PeriodicBC::CovShiftBackward(U[nu],nu, Grid::Cshift(adj(U[nu]),nu,-1))))) , mu, 1); + // Grid::Cshift(Grid::PeriodicBC::CovShiftForward(U[nu],nu,U[nu]),mu,1)* // ->|| + // Grid::adj(Grid::PeriodicBC::CovShiftForward(U[nu],nu,Grid::PeriodicBC::CovShiftForward(U[nu],nu,U[mu]))) ; + Stap = Grid::Cshift(Grid::PeriodicBC::CovShiftForward(U[nu],nu, + Grid::PeriodicBC::CovShiftForward(U[nu],nu, + Grid::PeriodicBC::CovShiftBackward(U[mu],mu, + Grid::PeriodicBC::CovShiftBackward(U[nu],nu, Grid::Cshift(adj(U[nu]),nu,-1))))) , mu, 1); TrStap = Grid::trace (U[mu]*Stap); SumTrStap += TrStap; @@ -440,10 +440,10 @@ double calc_grid_r_dir(Grid::QCD::LatticeGaugeField & Umu) // | | // -- - Stap = Grid::Cshift(Grid::QCD::PeriodicBC::CovShiftBackward(U[nu],nu, - Grid::QCD::PeriodicBC::CovShiftBackward(U[nu],nu, - Grid::QCD::PeriodicBC::CovShiftBackward(U[mu],mu, - Grid::QCD::PeriodicBC::CovShiftForward (U[nu],nu,U[nu])))) , mu, 1); + Stap = Grid::Cshift(Grid::PeriodicBC::CovShiftBackward(U[nu],nu, + Grid::PeriodicBC::CovShiftBackward(U[nu],nu, + Grid::PeriodicBC::CovShiftBackward(U[mu],mu, + Grid::PeriodicBC::CovShiftForward (U[nu],nu,U[nu])))) , mu, 1); TrStap = Grid::trace (U[mu]*Stap); trect = Grid::sum(TrStap); @@ -459,20 +459,20 @@ double calc_grid_r_dir(Grid::QCD::LatticeGaugeField & Umu) Peter.Stop(); Azusa.Start(); { - Grid::QCD::LatticeComplex RectPlaq_d(UGrid); - Grid::QCD::LatticeColourMatrix ds_U(UGrid); - Grid::QCD::LatticeColourMatrix left_2(UGrid); - Grid::QCD::LatticeColourMatrix upper_l(UGrid); - Grid::QCD::LatticeColourMatrix upper_staple(UGrid); - Grid::QCD::LatticeColourMatrix down_l(UGrid); - Grid::QCD::LatticeColourMatrix down_staple(UGrid); - Grid::QCD::LatticeColourMatrix tmp(UGrid); + Grid::LatticeComplex RectPlaq_d(UGrid); + Grid::LatticeColourMatrix ds_U(UGrid); + Grid::LatticeColourMatrix left_2(UGrid); + Grid::LatticeColourMatrix upper_l(UGrid); + Grid::LatticeColourMatrix upper_staple(UGrid); + Grid::LatticeColourMatrix down_l(UGrid); + Grid::LatticeColourMatrix down_staple(UGrid); + Grid::LatticeColourMatrix tmp(UGrid); // 2 (mu)x1(nu) - left_2= Grid::QCD::PeriodicBC::CovShiftForward(U[mu],mu,U[mu]); // Umu(x) Umu(x+mu) + left_2= Grid::PeriodicBC::CovShiftForward(U[mu],mu,U[mu]); // Umu(x) Umu(x+mu) tmp=Grid::Cshift(U[nu],mu,2); // Unu(x+2mu) - upper_l= Grid::QCD::PeriodicBC::CovShiftForward(tmp,nu,Grid::adj(left_2)); // Unu(x+2mu) Umu^dag(x+mu+nu) Umu^dag(x+nu) + upper_l= Grid::PeriodicBC::CovShiftForward(tmp,nu,Grid::adj(left_2)); // Unu(x+2mu) Umu^dag(x+mu+nu) Umu^dag(x+nu) // __ __ // = | @@ -546,9 +546,9 @@ double calc_grid_r_dir(Grid::QCD::LatticeGaugeField & Umu) // _ // | | // | | - Grid::QCD::LatticeColourMatrix up2= Grid::QCD::PeriodicBC::CovShiftForward(U[nu],nu,U[nu]); + Grid::LatticeColourMatrix up2= Grid::PeriodicBC::CovShiftForward(U[nu],nu,U[nu]); - upper_l= Grid::QCD::PeriodicBC::CovShiftForward(Grid::Cshift(up2,mu,1),nu,Grid::Cshift(adj(U[mu]),nu,1)); + upper_l= Grid::PeriodicBC::CovShiftForward(Grid::Cshift(up2,mu,1),nu,Grid::Cshift(adj(U[mu]),nu,1)); ds_U= upper_l*Grid::adj(up2); RectPlaq_d = Grid::trace(U[mu]*ds_U); @@ -569,7 +569,7 @@ double calc_grid_r_dir(Grid::QCD::LatticeGaugeField & Umu) downer_l= | (x)<----V */ - down_l= Grid::adj(Grid::QCD::PeriodicBC::CovShiftForward(U[mu],mu,up2)); //downer_l + down_l= Grid::adj(Grid::PeriodicBC::CovShiftForward(U[mu],mu,up2)); //downer_l /* ^ | down_staple = | V @@ -601,23 +601,23 @@ double calc_grid_r_dir(Grid::QCD::LatticeGaugeField & Umu) } }} - Grid::QCD::PlaqPlusRectangleActionR Wilson(0.0,c1); // Just take beta = 0.0 + Grid::PlaqPlusRectangleActionR Wilson(0.0,c1); // Just take beta = 0.0 return Wilson.S(Umu); }; -void check_grid_r_staple(Grid::QCD::LatticeGaugeField & Umu) +void check_grid_r_staple(Grid::LatticeGaugeField & Umu) { std::vector seeds4({1,2,3,4}); Grid::GridCartesian * UGrid = (Grid::GridCartesian *) Umu.Grid(); - Grid::QCD::PlaqPlusRectangleActionR Wilson(0.0,c1); // Just take beta = 0.0 + Grid::PlaqPlusRectangleActionR Wilson(0.0,c1); // Just take beta = 0.0 - Grid::QCD::LatticeColourMatrix staple(UGrid); - Grid::QCD::LatticeColourMatrix link(UGrid); - Grid::QCD::LatticeComplex Traced(UGrid); + Grid::LatticeColourMatrix staple(UGrid); + Grid::LatticeColourMatrix link(UGrid); + Grid::LatticeComplex Traced(UGrid); Grid::Complex Rplaq(0.0); for(int mu=0;mu(Umu,mu); + link = Grid::PeekIndex(Umu,mu); Traced = Grid::trace( link*staple) * RectScale; - Grid::QCD::TComplex Tp = Grid::sum(Traced); + Grid::TComplex Tp = Grid::sum(Traced); Grid::Complex p = Grid::TensorRemove(Tp); std::cout<< "Rect from RectStaple "< seeds4({1,2,3,4}); Grid::GridCartesian * UGrid = (Grid::GridCartesian *) Umu.Grid(); - Grid::QCD::PlaqPlusRectangleActionR Wilson(1.0,0.0); // Just take c1 = 0.0 + Grid::PlaqPlusRectangleActionR Wilson(1.0,0.0); // Just take c1 = 0.0 - Grid::QCD::LatticeColourMatrix staple(UGrid); - Grid::QCD::LatticeColourMatrix link(UGrid); - Grid::QCD::LatticeComplex Traced(UGrid); + Grid::LatticeColourMatrix staple(UGrid); + Grid::LatticeColourMatrix link(UGrid); + Grid::LatticeComplex Traced(UGrid); Grid::Complex plaq(0.0); for(int mu=0;mu(Umu,mu); + link = Grid::PeekIndex(Umu,mu); Traced = Grid::trace( link*staple) * Scale; - Grid::QCD::TComplex Tp = Grid::sum(Traced); + Grid::TComplex Tp = Grid::sum(Traced); Grid::Complex p = Grid::TensorRemove(Tp); std::cout<< "Plaq from PlaqStaple "< #include @@ -71,10 +71,10 @@ public: typedef LatticeFermion T4; typedef multi1d T5; - static void ImportGauge(Grid::QCD::LatticeGaugeField & gr, + static void ImportGauge(Grid::LatticeGaugeField & gr, QDP::multi1d & ch) { - Grid::QCD::LorentzColourMatrix LCM; + Grid::LorentzColourMatrix LCM; Grid::Complex cc; QDP::ColorMatrix cm; QDP::Complex c; @@ -112,10 +112,10 @@ public: }}}} } - static void ImportFermion(Grid::QCD::LatticeFermion & gr, + static void ImportFermion(Grid::LatticeFermion & gr, QDP::multi1d & ch ) { - Grid::QCD::SpinColourVector F; + Grid::SpinColourVector F; Grid::Complex c; QDP::Fermion cF; @@ -154,10 +154,10 @@ public: QDP::pokeSite(ch[s],cF,cx); }}}}} } - static void ExportFermion(Grid::QCD::LatticeFermion & gr, + static void ExportFermion(Grid::LatticeFermion & gr, QDP::multi1d & ch ) { - Grid::QCD::SpinColourVector F; + Grid::SpinColourVector F; Grid::Complex c; QDP::Fermion cF; @@ -384,9 +384,9 @@ int main (int argc,char **argv ) * Setup Grid *********************************************************/ Grid::Grid_init(&argc,&argv); - Grid::GridCartesian * UGrid = Grid::QCD::SpaceTimeGrid::makeFourDimGrid(Grid::GridDefaultLatt(), - Grid::GridDefaultSimd(Grid::QCD::Nd,Grid::vComplex::Nsimd()), - Grid::GridDefaultMpi()); + Grid::GridCartesian * UGrid = Grid::SpaceTimeGrid::makeFourDimGrid(Grid::GridDefaultLatt(), + Grid::GridDefaultSimd(Grid::Nd,Grid::vComplex::Nsimd()), + Grid::GridDefaultMpi()); std::vector gd = UGrid->GlobalDimensions(); QDP::multi1d nrow(QDP::Nd); @@ -395,11 +395,11 @@ int main (int argc,char **argv ) QDP::Layout::setLattSize(nrow); QDP::Layout::create(); - Grid::GridCartesian * FGrid = Grid::QCD::SpaceTimeGrid::makeFiveDimGrid(Ls,UGrid); - Grid::QCD::LatticeGaugeField lat(UGrid); - Grid::QCD::LatticeFermion src(FGrid); - Grid::QCD::LatticeFermion res_chroma(FGrid); - Grid::QCD::LatticeFermion res_grid (FGrid); + Grid::GridCartesian * FGrid = Grid::SpaceTimeGrid::makeFiveDimGrid(Ls,UGrid); + Grid::LatticeGaugeField lat(UGrid); + Grid::LatticeFermion src(FGrid); + Grid::LatticeFermion res_chroma(FGrid); + Grid::LatticeFermion res_grid (FGrid); std::vector ActionList({ HtCayleyTanh, // Plain old DWF. @@ -446,7 +446,7 @@ int main (int argc,char **argv ) Chroma::finalize(); } -void calc_chroma(ChromaAction action,Grid::QCD::LatticeGaugeField & lat, Grid::QCD::LatticeFermion &src, Grid::QCD::LatticeFermion &res,int dag) +void calc_chroma(ChromaAction action,Grid::LatticeGaugeField & lat, Grid::LatticeFermion &src, Grid::LatticeFermion &res,int dag) { QDP::multi1d u(4); @@ -483,7 +483,7 @@ void calc_chroma(ChromaAction action,Grid::QCD::LatticeGaugeField & lat, Grid::Q -void calc_grid(ChromaAction action,Grid::QCD::LatticeGaugeField & Umu, Grid::QCD::LatticeFermion &src, Grid::QCD::LatticeFermion &res,int dag) +void calc_grid(ChromaAction action,Grid::LatticeGaugeField & Umu, Grid::LatticeFermion &src, Grid::LatticeFermion &res,int dag) { using namespace Grid; ; @@ -493,8 +493,8 @@ void calc_grid(ChromaAction action,Grid::QCD::LatticeGaugeField & Umu, Grid::QCD Grid::GridCartesian * UGrid = (Grid::GridCartesian *) Umu.Grid(); Grid::GridCartesian * FGrid = (Grid::GridCartesian *) src.Grid(); - Grid::GridRedBlackCartesian * UrbGrid = Grid::QCD::SpaceTimeGrid::makeFourDimRedBlackGrid(UGrid); - Grid::GridRedBlackCartesian * FrbGrid = Grid::QCD::SpaceTimeGrid::makeFiveDimRedBlackGrid(Ls,UGrid); + Grid::GridRedBlackCartesian * UrbGrid = Grid::SpaceTimeGrid::makeFourDimRedBlackGrid(UGrid); + Grid::GridRedBlackCartesian * FrbGrid = Grid::SpaceTimeGrid::makeFiveDimRedBlackGrid(Ls,UGrid); Grid::GridParallelRNG RNG4(UGrid); RNG4.SeedFixedIntegers(seeds4); Grid::GridParallelRNG RNG5(FGrid); RNG5.SeedFixedIntegers(seeds5); @@ -502,12 +502,12 @@ void calc_grid(ChromaAction action,Grid::QCD::LatticeGaugeField & Umu, Grid::QCD Grid::gaussian(RNG5,src); Grid::gaussian(RNG5,res); - Grid::QCD::SU3::HotConfiguration(RNG4,Umu); + Grid::SU3::HotConfiguration(RNG4,Umu); /* - Grid::QCD::LatticeColourMatrix U(UGrid); + Grid::LatticeColourMatrix U(UGrid); U=Grid::zero; - for(int nn=0;nn=4 ) { Grid::PokeIndex(Umu,U,nn); } @@ -519,7 +519,7 @@ void calc_grid(ChromaAction action,Grid::QCD::LatticeGaugeField & Umu, Grid::QCD if ( action == HtCayleyTanh ) { - Grid::QCD::DomainWallFermionR Ddwf(Umu,*FGrid,*FrbGrid,*UGrid,*UrbGrid,_mass,_M5); + Grid::DomainWallFermionR Ddwf(Umu,*FGrid,*FrbGrid,*UGrid,*UrbGrid,_mass,_M5); std::cout << Grid::GridLogMessage <<" Calling domain wall multiply "< double mq=0.1; -typedef Grid::QCD::StaggeredImplR::FermionField FermionField; -typedef Grid::QCD::LatticeGaugeField GaugeField; +typedef Grid::StaggeredImplR::FermionField FermionField; +typedef Grid::LatticeGaugeField GaugeField; void make_gauge (GaugeField & lat, FermionField &src); void calc_grid (GaugeField & lat, GaugeField & uthin,GaugeField & ufat, FermionField &src, FermionField &res,int dag); @@ -53,7 +53,7 @@ public: static void ImportGauge(GaugeField & gr, QDP::multi1d & ch) { - Grid::QCD::LorentzColourMatrix LCM; + Grid::LorentzColourMatrix LCM; Grid::Complex cc; QDP::ColorMatrix cm; QDP::Complex c; @@ -88,7 +88,7 @@ public: static void ExportGauge(GaugeField & gr, QDP::multi1d & ch) { - Grid::QCD::LorentzColourMatrix LCM; + Grid::LorentzColourMatrix LCM; Grid::Complex cc; QDP::ColorMatrix cm; QDP::Complex c; @@ -124,7 +124,7 @@ public: static void ImportFermion(FermionField & gr, QDP::LatticeStaggeredFermion & ch ) { - Grid::QCD::ColourVector F; + Grid::ColourVector F; Grid::Complex c; @@ -157,7 +157,7 @@ public: static void ExportFermion(FermionField & gr, QDP::LatticeStaggeredFermion & ch ) { - Grid::QCD::ColourVector F; + Grid::ColourVector F; Grid::Complex c; std::vector x(5); @@ -222,9 +222,9 @@ int main (int argc,char **argv ) * Setup Grid *********************************************************/ Grid::Grid_init(&argc,&argv); - Grid::GridCartesian * UGrid = Grid::QCD::SpaceTimeGrid::makeFourDimGrid(Grid::GridDefaultLatt(), - Grid::GridDefaultSimd(Grid::QCD::Nd,Grid::vComplex::Nsimd()), - Grid::GridDefaultMpi()); + Grid::GridCartesian * UGrid = Grid::SpaceTimeGrid::makeFourDimGrid(Grid::GridDefaultLatt(), + Grid::GridDefaultSimd(Grid::Nd,Grid::vComplex::Nsimd()), + Grid::GridDefaultMpi()); std::vector gd = UGrid->GlobalDimensions(); QDP::multi1d nrow(QDP::Nd); @@ -333,7 +333,7 @@ void make_gauge(GaugeField & Umu,FermionField &src) Grid::GridCartesian * UGrid = (Grid::GridCartesian *) Umu.Grid(); Grid::GridParallelRNG RNG4(UGrid); RNG4.SeedFixedIntegers(seeds4); - Grid::QCD::SU3::HotConfiguration(RNG4,Umu); + Grid::SU3::HotConfiguration(RNG4,Umu); Grid::gaussian(RNG4,src); } @@ -343,9 +343,9 @@ void calc_grid(GaugeField & Uthin, GaugeField & Utriple, GaugeField & Ufat, Ferm ; Grid::GridCartesian * UGrid = (Grid::GridCartesian *) Uthin.Grid(); - Grid::GridRedBlackCartesian * UrbGrid = Grid::QCD::SpaceTimeGrid::makeFourDimRedBlackGrid(UGrid); + Grid::GridRedBlackCartesian * UrbGrid = Grid::SpaceTimeGrid::makeFourDimRedBlackGrid(UGrid); - Grid::QCD::ImprovedStaggeredFermionR Dstag(Uthin,Utriple,Ufat,*UGrid,*UrbGrid,mq*2.0); + Grid::ImprovedStaggeredFermionR Dstag(Uthin,Utriple,Ufat,*UGrid,*UrbGrid,mq*2.0); std::cout << Grid::GridLogMessage <<" Calling Grid staggered multiply "< &ch) { - Grid::QCD::LorentzColourMatrix LCM; + Grid::LorentzColourMatrix LCM; Grid::Complex cc; QDP::ColorMatrix cm; QDP::Complex c; @@ -101,7 +101,7 @@ public: static void ExportGauge(GaugeField &gr, QDP::multi1d &ch) { - Grid::QCD::LorentzColourMatrix LCM; + Grid::LorentzColourMatrix LCM; Grid::Complex cc; QDP::ColorMatrix cm; QDP::Complex c; @@ -145,10 +145,10 @@ public: } // Specific for Wilson Fermions - static void ImportFermion(Grid::QCD::LatticeFermion &gr, + static void ImportFermion(Grid::LatticeFermion &gr, QDP::LatticeFermion &ch) { - Grid::QCD::SpinColourVector F; + Grid::SpinColourVector F; Grid::Complex c; QDP::Fermion cF; @@ -195,10 +195,10 @@ public: } // Specific for 4d Wilson fermions - static void ExportFermion(Grid::QCD::LatticeFermion &gr, + static void ExportFermion(Grid::LatticeFermion &gr, QDP::LatticeFermion &ch) { - Grid::QCD::SpinColourVector F; + Grid::SpinColourVector F; Grid::Complex c; QDP::Fermion cF; @@ -342,19 +342,18 @@ void calc_chroma(ChromaAction action, GaugeField &lat, FermionField &src, Fermio void make_gauge(GaugeField &Umu, FermionField &src) { using namespace Grid; - using namespace Grid::QCD; std::vector seeds4({1, 2, 3, 4}); Grid::GridCartesian *UGrid = (Grid::GridCartesian *)Umu._grid; Grid::GridParallelRNG RNG4(UGrid); RNG4.SeedFixedIntegers(seeds4); - Grid::QCD::SU3::HotConfiguration(RNG4, Umu); + Grid::SU3::HotConfiguration(RNG4, Umu); // Fermion field Grid::gaussian(RNG4, src); /* - Grid::QCD::SpinColourVector F; + Grid::SpinColourVector F; Grid::Complex c; @@ -391,13 +390,12 @@ void make_gauge(GaugeField &Umu, FermionField &src) */ } -void calc_grid(ChromaAction action, Grid::QCD::LatticeGaugeField &Umu, Grid::QCD::LatticeFermion &src, Grid::QCD::LatticeFermion &res, int dag) +void calc_grid(ChromaAction action, Grid::LatticeGaugeField &Umu, Grid::LatticeFermion &src, Grid::LatticeFermion &res, int dag) { using namespace Grid; - using namespace Grid::QCD; Grid::GridCartesian *UGrid = (Grid::GridCartesian *)Umu._grid; - Grid::GridRedBlackCartesian *UrbGrid = Grid::QCD::SpaceTimeGrid::makeFourDimRedBlackGrid(UGrid); + Grid::GridRedBlackCartesian *UrbGrid = Grid::SpaceTimeGrid::makeFourDimRedBlackGrid(UGrid); Grid::RealD _mass = mq; @@ -409,7 +407,7 @@ void calc_grid(ChromaAction action, Grid::QCD::LatticeGaugeField &Umu, Grid::QCD anis.xi_0 = 2.0; anis.nu = 1.0; WilsonImplParams iParam; - Grid::QCD::WilsonFermionR Wf(Umu, *UGrid, *UrbGrid, _mass, iParam, anis); + Grid::WilsonFermionR Wf(Umu, *UGrid, *UrbGrid, _mass, iParam, anis); std::cout << Grid::GridLogMessage << " Calling Grid Wilson Fermion multiply " << std::endl; @@ -430,7 +428,7 @@ void calc_grid(ChromaAction action, Grid::QCD::LatticeGaugeField &Umu, Grid::QCD anis.xi_0 = 2.0; anis.nu = 1.0; WilsonImplParams CloverImplParam; - Grid::QCD::WilsonCloverFermionR Wf(Umu, *UGrid, *UrbGrid, _mass, _csw_r, _csw_t, anis, CloverImplParam); + Grid::WilsonCloverFermionR Wf(Umu, *UGrid, *UrbGrid, _mass, _csw_r, _csw_t, anis, CloverImplParam); Wf.ImportGauge(Umu); std::cout << Grid::GridLogMessage << " Calling Grid Wilson Clover Fermion multiply " << std::endl; @@ -458,9 +456,9 @@ int main(int argc, char **argv) * Setup Grid *********************************************************/ Grid::Grid_init(&argc, &argv); - Grid::GridCartesian *UGrid = Grid::QCD::SpaceTimeGrid::makeFourDimGrid(Grid::GridDefaultLatt(), - Grid::GridDefaultSimd(Grid::QCD::Nd, Grid::vComplex::Nsimd()), - Grid::GridDefaultMpi()); + Grid::GridCartesian *UGrid = Grid::SpaceTimeGrid::makeFourDimGrid(Grid::GridDefaultLatt(), + Grid::GridDefaultSimd(Grid::Nd, Grid::vComplex::Nsimd()), + Grid::GridDefaultMpi()); std::vector gd = UGrid->GlobalDimensions(); QDP::multi1d nrow(QDP::Nd); diff --git a/tests/smearing/Test_smearing.cc b/tests/smearing/Test_smearing.cc index efc336c7..c1c7c457 100644 --- a/tests/smearing/Test_smearing.cc +++ b/tests/smearing/Test_smearing.cc @@ -30,8 +30,6 @@ Author: Peter Boyle using namespace std; using namespace Grid; -using namespace Grid::QCD; - int main (int argc, char ** argv) { diff --git a/tests/solver/Test_wilsonclover_mg_lime.cc b/tests/solver/Test_wilsonclover_mg_lime.cc index 687ec83f..bd2990d4 100644 --- a/tests/solver/Test_wilsonclover_mg_lime.cc +++ b/tests/solver/Test_wilsonclover_mg_lime.cc @@ -32,7 +32,6 @@ using namespace std; using namespace Grid; -using namespace Grid::QCD; int main(int argc, char **argv) {