From e0a92dff32581fb3a4e1ff348d33be1db7e722e9 Mon Sep 17 00:00:00 2001 From: Quadro Date: Tue, 25 May 2021 18:12:11 -0400 Subject: [PATCH] update action params --- Grid/qcd/action/ActionParams.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Grid/qcd/action/ActionParams.h b/Grid/qcd/action/ActionParams.h index 12d2b91b..86299269 100644 --- a/Grid/qcd/action/ActionParams.h +++ b/Grid/qcd/action/ActionParams.h @@ -38,27 +38,32 @@ NAMESPACE_BEGIN(Grid); struct GparityWilsonImplParams { Coordinate twists; //Here the first Nd-1 directions are treated as "spatial", and a twist value of 1 indicates G-parity BCs in that direction. //mu=Nd-1 is assumed to be the time direction and a twist value of 1 indicates antiperiodic BCs - GparityWilsonImplParams() : twists(Nd, 0) {}; + bool locally_periodic; + GparityWilsonImplParams() : twists(Nd, 0), locally_periodic(false) {}; }; struct WilsonImplParams { bool overlapCommsCompute; + bool locally_periodic; AcceleratorVector twist_n_2pi_L; AcceleratorVector boundary_phases; WilsonImplParams() { boundary_phases.resize(Nd, 1.0); twist_n_2pi_L.resize(Nd, 0.0); + locally_periodic = false; }; WilsonImplParams(const AcceleratorVector phi) : boundary_phases(phi), overlapCommsCompute(false) { twist_n_2pi_L.resize(Nd, 0.0); + locally_periodic = false; } }; struct StaggeredImplParams { - StaggeredImplParams() {}; + bool locally_periodic; + StaggeredImplParams() : locally_periodic(false) {}; }; - struct OneFlavourRationalParams : Serializable { +struct OneFlavourRationalParams : Serializable { GRID_SERIALIZABLE_CLASS_MEMBERS(OneFlavourRationalParams, RealD, lo, RealD, hi,