From 06d7b88c78012d7f83e22f25186611812351efc9 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 31 Aug 2022 17:32:21 -0400 Subject: [PATCH] Force reporting improved --- Grid/qcd/hmc/integrators/Integrator.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Grid/qcd/hmc/integrators/Integrator.h b/Grid/qcd/hmc/integrators/Integrator.h index 33a77f32..7f676ce7 100644 --- a/Grid/qcd/hmc/integrators/Integrator.h +++ b/Grid/qcd/hmc/integrators/Integrator.h @@ -143,9 +143,10 @@ protected: force = FieldImplementation::projectForce(force); // Ta for gauge fields double end_force = usecond(); + // DumpSliceNorm("force ",force,Nd-1); MomFilter->applyFilter(force); std::cout << GridLogIntegrator << " update_P : Level [" << level <<"]["<gSites()); //average per-site norm. nb. norm2(latt) = \sum_x norm2(latt[x]) Real impulse_abs = force_abs * ep * HMC_MOMENTUM_DENOMINATOR; @@ -286,7 +287,7 @@ public: <<" force max " << as[level].actions.at(actionID)->deriv_max_average() <<" norm " << as[level].actions.at(actionID)->deriv_norm_average() <<" Fdt max " << as[level].actions.at(actionID)->Fdt_max_average() - <<" norm " << as[level].actions.at(actionID)->Fdt_norm_average() + <<" Fdt norm " << as[level].actions.at(actionID)->Fdt_norm_average() <<" calls " << as[level].actions.at(actionID)->deriv_num << std::endl; }