diff --git a/extras/Hadrons/Modules/MAction/DWF.hpp b/extras/Hadrons/Modules/MAction/DWF.hpp index 4dfd06cf..00b16d10 100644 --- a/extras/Hadrons/Modules/MAction/DWF.hpp +++ b/extras/Hadrons/Modules/MAction/DWF.hpp @@ -117,7 +117,7 @@ void TDWF::setup(void) auto &grb4 = *env().getRbGrid(); auto &g5 = *env().getGrid(par().Ls); auto &grb5 = *env().getRbGrid(par().Ls); - std::vector boundary = strToVec(par().boundary); + std::vector boundary = strToVec(par().boundary); typename DomainWallFermion::ImplParams implParams(boundary); envCreateDerived(FMat, DomainWallFermion, getName(), par().Ls, U, g5, grb5, g4, grb4, par().mass, par().M5, implParams); diff --git a/extras/Hadrons/Modules/MAction/Wilson.hpp b/extras/Hadrons/Modules/MAction/Wilson.hpp index 6467b3ee..77cd0403 100644 --- a/extras/Hadrons/Modules/MAction/Wilson.hpp +++ b/extras/Hadrons/Modules/MAction/Wilson.hpp @@ -110,7 +110,7 @@ void TWilson::setup(void) auto &U = envGet(LatticeGaugeField, par().gauge); auto &grid = *env().getGrid(); auto &gridRb = *env().getRbGrid(); - std::vector boundary = strToVec(par().boundary); + std::vector boundary = strToVec(par().boundary); typename WilsonFermion::ImplParams implParams(boundary); envCreateDerived(FMat, WilsonFermion, getName(), 1, U, grid, gridRb, par().mass, implParams); diff --git a/extras/Hadrons/Modules/MAction/WilsonClover.hpp b/extras/Hadrons/Modules/MAction/WilsonClover.hpp index c369f086..039a8b84 100644 --- a/extras/Hadrons/Modules/MAction/WilsonClover.hpp +++ b/extras/Hadrons/Modules/MAction/WilsonClover.hpp @@ -121,7 +121,7 @@ void TWilsonClover::setup(void) auto &U = envGet(LatticeGaugeField, par().gauge); auto &grid = *env().getGrid(); auto &gridRb = *env().getRbGrid(); - std::vector boundary = strToVec(par().boundary); + std::vector boundary = strToVec(par().boundary); typename WilsonCloverFermion::ImplParams implParams(boundary); envCreateDerived(FMat, WilsonCloverFermion, getName(), 1, U, grid, gridRb, par().mass, par().csw_r, diff --git a/lib/qcd/action/ActionParams.h b/lib/qcd/action/ActionParams.h index d25b60a9..8d4dcf49 100644 --- a/lib/qcd/action/ActionParams.h +++ b/lib/qcd/action/ActionParams.h @@ -44,11 +44,11 @@ namespace QCD { struct WilsonImplParams { bool overlapCommsCompute; - std::vector boundary_phases; + std::vector boundary_phases; WilsonImplParams() : overlapCommsCompute(false) { boundary_phases.resize(Nd, 1.0); }; - WilsonImplParams(const std::vector phi) + WilsonImplParams(const std::vector phi) : boundary_phases(phi), overlapCommsCompute(false) {} }; diff --git a/tests/solver/Test_mobius_bcg.cc b/tests/solver/Test_mobius_bcg.cc index 4b22fb18..f56c73ca 100644 --- a/tests/solver/Test_mobius_bcg.cc +++ b/tests/solver/Test_mobius_bcg.cc @@ -38,7 +38,7 @@ int main (int argc, char ** argv) typedef typename MobiusFermionR::ComplexField ComplexField; typename MobiusFermionR::ImplParams params; - const int Ls=24; + const int Ls=12; Grid_init(&argc,&argv); @@ -49,6 +49,10 @@ int main (int argc, char ** argv) std::vector split_coor (mpi_layout.size(),1); std::vector split_dim (mpi_layout.size(),1); + std::vector boundary_phases(Nd,1.); + boundary_phases[Nd-1]=-1.; + params.boundary_phases = boundary_phases; + GridCartesian * UGrid = SpaceTimeGrid::makeFourDimGrid(GridDefaultLatt(), GridDefaultSimd(Nd,vComplex::Nsimd()), GridDefaultMpi()); @@ -139,7 +143,7 @@ int main (int argc, char ** argv) LatticeGaugeField Umu(UGrid); FieldMetaData header; - std::string file("./lat.in.24ID"); + std::string file("./lat.in.32IDfine"); SU3::ColdConfiguration(Umu); std::cout << GridLogMessage << "Intialised the COLD Gauge Field"< HermOp(Ddwf); MdagMLinearOperator HermOpCk(Dchk); - ConjugateGradient CG((stp),10000); + ConjugateGradient CG((stp),100000); s_res = zero; +if(0){ // CG(HermOp,s_src,s_res); std::cout << GridLogMessage << " split residual norm "<0) src[me] = src[0]; for(int s=0;s BCGV (BlockCGVec,blockDim,stp,10000); + BlockConjugateGradient BCGV (BlockCGVec,blockDim,stp,100000); BCGV.PrintInterval=10; { BCGV(HermOpCk,src,result);