From dc36d272ce1701cd4c9e8bb00b1509bc03008c37 Mon Sep 17 00:00:00 2001 From: Chulwoo Jung Date: Tue, 21 Nov 2023 13:48:51 -0500 Subject: [PATCH] Gauge RMHMC conserving dH --- Grid/qcd/action/gauge/GaugeImplTypes.h | 2 +- Grid/qcd/action/gauge/WilsonGaugeAction.h | 2 +- Grid/qcd/action/scalar/ScalarImpl.h | 2 +- Grid/qcd/hmc/HMC.h | 2 +- Grid/qcd/hmc/integrators/Integrator.h | 40 +++++++++++++++++++---- Grid/qcd/utils/Metric.h | 3 +- HMC/Mobius2p1p1fEOFA_4Gev.cc | 2 +- 7 files changed, 41 insertions(+), 12 deletions(-) diff --git a/Grid/qcd/action/gauge/GaugeImplTypes.h b/Grid/qcd/action/gauge/GaugeImplTypes.h index a9af1fae..3aafc57e 100644 --- a/Grid/qcd/action/gauge/GaugeImplTypes.h +++ b/Grid/qcd/action/gauge/GaugeImplTypes.h @@ -32,7 +32,7 @@ directory NAMESPACE_BEGIN(Grid); -#define CPS_MD_TIME +#undef CPS_MD_TIME #ifdef CPS_MD_TIME #define HMC_MOMENTUM_DENOMINATOR (2.0) diff --git a/Grid/qcd/action/gauge/WilsonGaugeAction.h b/Grid/qcd/action/gauge/WilsonGaugeAction.h index 0156811d..ca1e27bc 100644 --- a/Grid/qcd/action/gauge/WilsonGaugeAction.h +++ b/Grid/qcd/action/gauge/WilsonGaugeAction.h @@ -73,7 +73,7 @@ public: ////////// boundary phase ///////////// auto pha = Params.boundary_phases[mu]; scalar_type phase( real(pha),imag(pha) ); - std::cout<< GridLogMessage << "[WilsonGaugeAction] boundary "<GlobalDimensions()[mu]; int Lmu = L - 1; diff --git a/Grid/qcd/action/scalar/ScalarImpl.h b/Grid/qcd/action/scalar/ScalarImpl.h index 13bd6c90..dafc520b 100644 --- a/Grid/qcd/action/scalar/ScalarImpl.h +++ b/Grid/qcd/action/scalar/ScalarImpl.h @@ -1,6 +1,6 @@ #pragma once -#define CPS_MD_TIME +#undef CPS_MD_TIME #ifdef CPS_MD_TIME #define HMC_MOMENTUM_DENOMINATOR (2.0) diff --git a/Grid/qcd/hmc/HMC.h b/Grid/qcd/hmc/HMC.h index f91f03e3..4151e1c2 100644 --- a/Grid/qcd/hmc/HMC.h +++ b/Grid/qcd/hmc/HMC.h @@ -209,7 +209,7 @@ private: // updated state action ////////////////////////////////////////////////////////////////////////////////////////////////////// std::cout << GridLogMessage << "--------------------------------------------------\n"; - std::cout << GridLogMessage << "Compute final action"; + std::cout << GridLogMessage << "Compute final action" <