1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-17 07:17:06 +01:00

Added minimum norm integrator

Little rearrangement of HMC and integrator classes
This commit is contained in:
neo
2015-07-06 16:17:32 +09:00
parent 808f5820fa
commit 68fe0769a1
3 changed files with 94 additions and 39 deletions

View File

@ -29,7 +29,7 @@ int main (int argc, char ** argv)
SU3::HotConfiguration(pRNG, U);
// simplify template?
// simplify template declaration? Strip the lorentz from the second template
WilsonGaugeAction<LatticeLorentzColourMatrix, LatticeColourMatrix> Waction(6.0);
//Collect actions
@ -39,13 +39,14 @@ int main (int argc, char ** argv)
FullSet.push_back(Level1);
// Create integrator
typedef MinimumNorm2 IntegratorAlgorithm;// change here to change the algorithm
IntegratorParameters MDpar(12,30,1.0);
std::vector<int> rel ={1};
Integrator<LeapFrog> MDleapfrog(MDpar, FullSet,rel);
Integrator<IntegratorAlgorithm> MDynamics(&Fine,MDpar, FullSet,rel);
// Create HMC
HMCparameters HMCpar;
HybridMonteCarlo<LeapFrog> HMC(HMCpar, MDleapfrog, &Fine);
HybridMonteCarlo<IntegratorAlgorithm> HMC(HMCpar, MDynamics);
HMC.evolve(U);