1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 15:55:37 +00:00

Save one lattice fermion in GMRES code

This commit is contained in:
Daniel Richtmann 2017-11-06 17:12:23 +01:00
parent 9e3c187a4d
commit b3be9195b4
No known key found for this signature in database
GPG Key ID: B33C490AF0772057

View File

@ -312,7 +312,6 @@ class GeneralisedMinimalResidual : public OperatorFunction<Field> {
RealD rsd_sq = Tolerance * Tolerance * ssq;
Field r(src._grid);
Field Dpsi(src._grid);
PrecTimer.Reset();
MatTimer.Reset();
@ -331,8 +330,8 @@ class GeneralisedMinimalResidual : public OperatorFunction<Field> {
SolverTimer.Stop();
Linop.Op(psi, Dpsi); // maybe can improve these two lines
r = src - Dpsi; // by technique used in VPGCR
Linop.Op(psi,r);
axpy(r,-1.0,src,r);
RealD srcnorm = sqrt(ssq);
RealD resnorm = sqrt(norm2(r));