diff --git a/Grid/qcd/hmc/integrators/Integrator.h b/Grid/qcd/hmc/integrators/Integrator.h index 7d65ed60..940a35d3 100644 --- a/Grid/qcd/hmc/integrators/Integrator.h +++ b/Grid/qcd/hmc/integrators/Integrator.h @@ -54,7 +54,7 @@ public: template ::value, int >::type = 0 > IntegratorParameters(ReaderClass & Reader){ - std::cout << "Reading integrator\n"; + std::cout << GridLogMessage << "Reading integrator\n"; read(Reader, "Integrator", *this); } @@ -132,7 +132,7 @@ class Integrator { double end_full = usecond(); double time_full = (end_full - start_full) / 1e3; double time_force = (end_force - start_force) / 1e3; - std::cout << GridLogIntegrator << "["<is_smeared); + Field& Us = Smearer.get_U(as[level].actions.at(actionID)->is_smeared); as[level].actions.at(actionID)->refresh(Us, pRNG); } @@ -251,13 +250,11 @@ class Integrator { // over the representations struct _S { template - void operator()(std::vector*> repr_set, Repr& Rep, - int level, RealD& H) { + void operator()(std::vector*> repr_set, Repr& Rep, int level, RealD& H) { for (int a = 0; a < repr_set.size(); ++a) { RealD Hterm = repr_set.at(a)->S(Rep.U); - std::cout << GridLogMessage << "S Level " << level << " term " << a - << " H Hirep = " << Hterm << std::endl; + std::cout << GridLogMessage << "S Level " << level << " term " << a << " H Hirep = " << Hterm << std::endl; H += Hterm; } @@ -269,7 +266,7 @@ class Integrator { RealD H = - FieldImplementation::FieldSquareNorm(P)/HMC_MOMENTUM_DENOMINATOR; // - trace (P*P)/denom - std::cout << " Momentum hamiltonian "<< -H<is_smeared); Hterm = as[level].actions.at(actionID)->S(Us); - std::cout << GridLogMessage << "S Level " << level << " term " - << actionID << " H = " << Hterm << std::endl; + std::cout << GridLogMessage << "S [" << level << "][" << actionID << "] H = " << Hterm << std::endl; H += Hterm; } as[level].apply(S_hireps, Representations, level, H); @@ -305,8 +301,7 @@ class Integrator { // Check the clocks all match on all levels for (int level = 0; level < as.size(); ++level) { assert(fabs(t_U - t_P[level]) < 1.0e-6); // must be the same - std::cout << GridLogIntegrator << " times[" << level - << "]= " << t_P[level] << " " << t_U << std::endl; + std::cout << GridLogIntegrator << " times[" << level << "]= " << t_P[level] << " " << t_U << std::endl; } // and that we indeed got to the end of the trajectory diff --git a/Grid/qcd/hmc/integrators/Integrator_algorithm.h b/Grid/qcd/hmc/integrators/Integrator_algorithm.h index 13a37aeb..47574026 100644 --- a/Grid/qcd/hmc/integrators/Integrator_algorithm.h +++ b/Grid/qcd/hmc/integrators/Integrator_algorithm.h @@ -231,8 +231,7 @@ class ForceGradient : public Integratorstep(U, level + 1, first_step, 0); } - this->FG_update_P(U, level, 2 * Chi / ((1.0 - 2.0 * lambda) * eps), - (1.0 - 2.0 * lambda) * eps); + this->FG_update_P(U, level, 2 * Chi / ((1.0 - 2.0 * lambda) * eps), (1.0 - 2.0 * lambda) * eps); if (level == fl) { // lowest level this->update_U(U, 0.5 * eps);