1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-14 13:57:07 +01:00

Adding few comments

This commit is contained in:
Guido Cossu
2016-11-23 11:46:51 +00:00
parent 7144ee7ae8
commit d4e0b11bb1
2 changed files with 8 additions and 3 deletions

View File

@ -60,9 +60,11 @@ class ConjugateGradient : public OperatorFunction<Field> {
// Defaults true.
RealD Tolerance;
Integer MaxIterations;
// Reproducibility controls
bool ReproTest;
CG_state CGState;//to check reproducibility by repeating the CG
ReproducibilityState<typename Field::vector_object> ReprTest;
CG_state CGState; //to check reproducibility by repeating the CG
ReproducibilityState<typename Field::vector_object> ReprTest; // for the inner proucts
ConjugateGradient(RealD tol, Integer maxit, bool err_on_no_conv = true,
bool ReproducibilityTest = false)

View File

@ -63,6 +63,9 @@ class HmcRunner : public NerscHmcRunner {
Real mass = -0.77;
FermionAction FermOp(U, *FGrid, *FrbGrid, mass);
// To enable the CG reproducibility tests use
// ConjugateGradient<FermionField> CG(1.0e-8, 10000, true, true);
// This is the plain version
ConjugateGradient<FermionField> CG(1.0e-8, 10000);
TwoFlavourPseudoFermionAction<ImplPolicy> Nf2(FermOp, CG, CG);