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:
parent
9e3c187a4d
commit
b3be9195b4
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user