mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
More precision in rect force test
This commit is contained in:
parent
7c461dc664
commit
a9a3248cb5
@ -57,9 +57,10 @@ int main (int argc, char ** argv)
|
|||||||
SU3::HotConfiguration(pRNG,U);
|
SU3::HotConfiguration(pRNG,U);
|
||||||
|
|
||||||
double beta = 1.0;
|
double beta = 1.0;
|
||||||
double c1 = 0.331;
|
double c1 = -0.331;
|
||||||
|
|
||||||
PlaqPlusRectangleActionR Action(beta,c1);
|
IwasakiGaugeActionR Action(beta);
|
||||||
|
// PlaqPlusRectangleActionR Action(beta,c1);
|
||||||
// WilsonGaugeActionR Action(beta);
|
// WilsonGaugeActionR Action(beta);
|
||||||
|
|
||||||
ComplexD S = Action.S(U);
|
ComplexD S = Action.S(U);
|
||||||
@ -87,7 +88,13 @@ int main (int argc, char ** argv)
|
|||||||
|
|
||||||
// fourth order exponential approx
|
// fourth order exponential approx
|
||||||
parallel_for(auto i=mom.begin();i<mom.end();i++){ // exp(pmu dt) * Umu
|
parallel_for(auto i=mom.begin();i<mom.end();i++){ // exp(pmu dt) * Umu
|
||||||
Uprime[i](mu) = U[i](mu) + mom[i](mu)*U[i](mu)*dt ;
|
Uprime[i](mu) = U[i](mu) + mom[i](mu)*U[i](mu)*dt
|
||||||
|
+ mom[i](mu) *mom[i](mu) *U[i](mu)*(dt*dt/2.0)
|
||||||
|
+ mom[i](mu) *mom[i](mu) *mom[i](mu) *U[i](mu)*(dt*dt*dt/6.0)
|
||||||
|
+ mom[i](mu) *mom[i](mu) *mom[i](mu) *mom[i](mu) *U[i](mu)*(dt*dt*dt*dt/24.0)
|
||||||
|
+ mom[i](mu) *mom[i](mu) *mom[i](mu) *mom[i](mu) *mom[i](mu) *U[i](mu)*(dt*dt*dt*dt*dt/120.0)
|
||||||
|
+ mom[i](mu) *mom[i](mu) *mom[i](mu) *mom[i](mu) *mom[i](mu) *mom[i](mu) *U[i](mu)*(dt*dt*dt*dt*dt*dt/720.0);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,6 +121,7 @@ int main (int argc, char ** argv)
|
|||||||
}
|
}
|
||||||
ComplexD dSpred = sum(dS);
|
ComplexD dSpred = sum(dS);
|
||||||
|
|
||||||
|
std::cout << std::setprecision(15)<<std::endl;
|
||||||
std::cout << GridLogMessage << " S "<<S<<std::endl;
|
std::cout << GridLogMessage << " S "<<S<<std::endl;
|
||||||
std::cout << GridLogMessage << " Sprime "<<Sprime<<std::endl;
|
std::cout << GridLogMessage << " Sprime "<<Sprime<<std::endl;
|
||||||
std::cout << GridLogMessage << "dS "<<Sprime-S<<std::endl;
|
std::cout << GridLogMessage << "dS "<<Sprime-S<<std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user