From 4a8c4ccfba1d05159348d21a9698028ea847e77b Mon Sep 17 00:00:00 2001 From: Guido Cossu Date: Fri, 2 Jun 2017 17:02:29 +0100 Subject: [PATCH] Test wilson flow, added maxTau for adaptive flow --- tests/smearing/Test_WilsonFlow.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/smearing/Test_WilsonFlow.cc b/tests/smearing/Test_WilsonFlow.cc index 77e7c5d1..5db00d5d 100644 --- a/tests/smearing/Test_WilsonFlow.cc +++ b/tests/smearing/Test_WilsonFlow.cc @@ -33,7 +33,8 @@ namespace Grid{ GRID_SERIALIZABLE_CLASS_MEMBERS(WFParameters, int, steps, double, step_size, - int, meas_interval); + int, meas_interval, + double, maxTau); // for the adaptive algorithm template @@ -97,11 +98,11 @@ int main(int argc, char **argv) { WilsonFlow WF(WFPar.steps, WFPar.step_size, WFPar.meas_interval); - WF.smear(Uflow, Umu); + WF.smear_adaptive(Uflow, Umu, WFPar.maxTau); RealD WFlow_plaq = WilsonLoops::avgPlaquette(Uflow); RealD WFlow_TC = WilsonLoops::TopologicalCharge(Uflow); - RealD WFlow_T0 = WF.energyDensityPlaquette(WFPar.steps, Uflow); + RealD WFlow_T0 = WF.energyDensityPlaquette(Uflow); std::cout << GridLogMessage << "Plaquette "<< conf << " " << WFlow_plaq << std::endl; std::cout << GridLogMessage << "T0 "<< conf << " " << WFlow_T0 << std::endl; std::cout << GridLogMessage << "TopologicalCharge "<< conf << " " << WFlow_TC << std::endl; @@ -135,7 +136,8 @@ JSON "WilsonFlow":{ "steps": 200, "step_size": 0.01, - "meas_interval": 50 + "meas_interval": 50, + "maxTau": 2.0 }, "Configurations":{ "conf_prefix": "ckpoint_lat",