1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-19 16:27:05 +01:00

More user-friendly environment for the shGordon test file

This commit is contained in:
Guido Cossu
2018-01-18 13:21:13 +00:00
parent 736dcd06c2
commit 6347904160
2 changed files with 35 additions and 39 deletions

View File

@ -64,6 +64,7 @@ class shGordonAction : public QCD::Action<typename Impl::Field> {
tmp = 2.0*QCD::Nd*phi;
for (int mu = 0; mu < QCD::Nd; mu++) tmp -= Cshift(phi, mu, 1) + Cshift(phi, mu, -1);
std::cout << GridLogDebug << "Phi norm : " << norm2(phi) << std::endl;
force+= tmp - 0.5*mass_square/g*(exp(g*phi) - exp(-g*phi));
}
};