mirror of
https://github.com/paboyle/Grid.git
synced 2025-05-14 22:45:47 +01:00
Run measurements at t=0 too
This commit is contained in:
parent
b517e88db3
commit
cfdb56f314
@ -252,6 +252,11 @@ void WilsonFlow<Gimpl>::smear(GaugeField& out, const GaugeField& in) const{
|
|||||||
|
|
||||||
out = in;
|
out = in;
|
||||||
RealD taus = 0.;
|
RealD taus = 0.;
|
||||||
|
|
||||||
|
// Perform initial t=0 measurements
|
||||||
|
for(auto const &meas : this->functions)
|
||||||
|
meas.second(0,taus,out);
|
||||||
|
|
||||||
for (unsigned int step = 1; step <= Nstep; step++) { //step indicates the number of smearing steps applied at the time of measurement
|
for (unsigned int step = 1; step <= Nstep; step++) { //step indicates the number of smearing steps applied at the time of measurement
|
||||||
auto start = std::chrono::high_resolution_clock::now();
|
auto start = std::chrono::high_resolution_clock::now();
|
||||||
evolve_step(out, taus);
|
evolve_step(out, taus);
|
||||||
@ -336,6 +341,11 @@ void WilsonFlowAdaptive<Gimpl>::smear(GaugeField& out, const GaugeField& in) con
|
|||||||
RealD taus = 0.;
|
RealD taus = 0.;
|
||||||
RealD eps = init_epsilon;
|
RealD eps = init_epsilon;
|
||||||
unsigned int step = 0;
|
unsigned int step = 0;
|
||||||
|
|
||||||
|
// Perform initial t=0 measurements
|
||||||
|
for(auto const &meas : this->functions)
|
||||||
|
meas.second(step,taus,out);
|
||||||
|
|
||||||
do{
|
do{
|
||||||
int step_success = evolve_step_adaptive(out, taus, eps);
|
int step_success = evolve_step_adaptive(out, taus, eps);
|
||||||
step += step_success; //step will not be incremented if the integration step fails
|
step += step_success; //step will not be incremented if the integration step fails
|
||||||
|
Loading…
x
Reference in New Issue
Block a user