2015-07-03 08:51:41 +01:00
|
|
|
/*!
|
|
|
|
@file Integrator_base.cc
|
|
|
|
@brief utilities for MD including funcs to generate initial HMC momentum
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <Grid.h>
|
|
|
|
|
|
|
|
namespace Grid{
|
|
|
|
namespace QCD{
|
|
|
|
|
2015-07-03 18:43:14 +01:00
|
|
|
void MDutils::generate_momenta(LatticeLorentzColourMatrix& P,GridParallelRNG& pRNG){
|
|
|
|
// for future support of different groups
|
|
|
|
MDutils::generate_momenta_su3(P, pRNG);
|
|
|
|
}
|
2015-07-03 08:51:41 +01:00
|
|
|
|
2015-07-03 18:43:14 +01:00
|
|
|
void MDutils::generate_momenta_su3(LatticeLorentzColourMatrix& P,GridParallelRNG& pRNG){
|
|
|
|
LatticeColourMatrix Pmu(P._grid);
|
2015-07-06 04:58:49 +01:00
|
|
|
Pmu = zero;
|
2015-07-03 18:43:14 +01:00
|
|
|
for(int mu=0;mu<Nd;mu++){
|
|
|
|
SU3::GaussianLieAlgebraMatrix(pRNG, Pmu);
|
2015-07-21 05:56:22 +01:00
|
|
|
PokeIndex<LorentzIndex>(P, Pmu, mu);
|
2015-07-03 18:43:14 +01:00
|
|
|
}
|
2015-07-06 04:58:49 +01:00
|
|
|
|
2015-07-03 08:51:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|