1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-12 20:27:06 +01:00

Add an overrelaxation parameter to the MR solver

This commit is contained in:
Daniel Richtmann
2018-02-07 17:45:27 +01:00
parent 68c66d2e4b
commit 323ed1a588
4 changed files with 7 additions and 6 deletions

View File

@ -61,7 +61,7 @@ int main (int argc, char ** argv)
DomainWallFermionR Ddwf(Umu,*FGrid,*FrbGrid,*UGrid,*UrbGrid,mass,M5);
MdagMLinearOperator<DomainWallFermionR,LatticeFermion> HermOp(Ddwf);
MinimalResidual<LatticeFermion> MR(1.0e-6,10000);
MinimalResidual<LatticeFermion> MR(1.0e-6,10000,0.8);
MR(HermOp,src,result);
Grid_finalize();

View File

@ -62,7 +62,7 @@ int main (int argc, char ** argv)
ImprovedStaggeredFermionR Ds(Umu,Umu,Grid,RBGrid,mass);
MdagMLinearOperator<ImprovedStaggeredFermionR,FermionField> HermOp(Ds);
MinimalResidual<FermionField> MR(1.0e-6,10000);
MinimalResidual<FermionField> MR(1.0e-6,10000,0.8);
MR(HermOp,src,result);
Grid_finalize();

View File

@ -58,7 +58,7 @@ int main (int argc, char ** argv)
WilsonFermionR Dw(Umu,Grid,RBGrid,mass);
MdagMLinearOperator<WilsonFermionR,LatticeFermion> HermOp(Dw);
MinimalResidual<LatticeFermion> MR(1.0e-8,10000);
MinimalResidual<LatticeFermion> MR(1.0e-8,10000,0.8);
MR(HermOp,src,result);
Grid_finalize();