1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Explicit parameter declaration in the WilsonGauge test

This commit is contained in:
Guido Cossu 2017-07-26 16:26:04 +01:00
parent 7abc5613bd
commit c0485d799d
2 changed files with 6 additions and 3 deletions

View File

@ -99,7 +99,6 @@ class TopologicalCharge : public HmcObservable<typename Impl::Field> {
if (Pars.do_smearing){
// using wilson flow by default here
std::cout << "1. " << Pars.Smearing.step_size << std::endl;
WilsonFlow<PeriodicGimplR> WF(Pars.Smearing.steps, Pars.Smearing.step_size, Pars.Smearing.meas_interval);
WF.smear_adaptive(Usmear, U, Pars.Smearing.maxTau);
Real T0 = WF.energyDensityPlaquette(Usmear);

View File

@ -67,8 +67,12 @@ int main(int argc, char **argv) {
typedef TopologicalChargeMod<HMCWrapper::ImplPolicy> QObs;
TheHMC.Resources.AddObservable<PlaqObs>();
TopologyObsParameters TopParams;
TopParams.interval = 1;
TopParams.do_smearing = false;
TopParams.interval = 5;
TopParams.do_smearing = true;
TopParams.Smearing.steps = 200;
TopParams.Smearing.step_size = 0.01;
TopParams.Smearing.meas_interval = 50;
TopParams.Smearing.maxTau = 2.0;
TheHMC.Resources.AddObservable<QObs>(TopParams);
//////////////////////////////////////////////