mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-10 06:00:45 +01:00
Scale momentum convention to CPS/UKQCD MD time
This commit is contained in:
parent
f4723e07c5
commit
3e712fe643
@ -29,6 +29,14 @@ directory
|
|||||||
#ifndef GRID_GAUGE_IMPL_TYPES_H
|
#ifndef GRID_GAUGE_IMPL_TYPES_H
|
||||||
#define GRID_GAUGE_IMPL_TYPES_H
|
#define GRID_GAUGE_IMPL_TYPES_H
|
||||||
|
|
||||||
|
#define CPS_MD_TIME
|
||||||
|
|
||||||
|
#ifdef CPS_MD_TIME
|
||||||
|
#define HMC_MOMENTUM_DENOMINATOR (2.0)
|
||||||
|
#else
|
||||||
|
#define HMC_MOMENTUM_DENOMINATOR (1.0)
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace Grid {
|
namespace Grid {
|
||||||
namespace QCD {
|
namespace QCD {
|
||||||
|
|
||||||
@ -105,13 +113,13 @@ public:
|
|||||||
//
|
//
|
||||||
// Expect cxmua variance sqrt(2).
|
// Expect cxmua variance sqrt(2).
|
||||||
//
|
//
|
||||||
// Must scale the momentum by sqrt(2) up to invoke CPS and UKQCD conventions
|
// Must scale the momentum by sqrt(2) to invoke CPS and UKQCD conventions
|
||||||
//
|
//
|
||||||
LinkField Pmu(P._grid);
|
LinkField Pmu(P._grid);
|
||||||
Pmu = Zero();
|
Pmu = Zero();
|
||||||
for (int mu = 0; mu < Nd; mu++) {
|
for (int mu = 0; mu < Nd; mu++) {
|
||||||
SU<Nrepresentation>::GaussianFundamentalLieAlgebraMatrix(pRNG, Pmu);
|
SU<Nrepresentation>::GaussianFundamentalLieAlgebraMatrix(pRNG, Pmu);
|
||||||
RealD scale = ::sqrt(2) ;
|
RealD scale = ::sqrt(HMC_MOMENTUM_DENOMINATOR) ;
|
||||||
Pmu = Pmu*scale;
|
Pmu = Pmu*scale;
|
||||||
PokeIndex<LorentzIndex>(P, Pmu, mu);
|
PokeIndex<LorentzIndex>(P, Pmu, mu);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user