mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-13 04:37:05 +01:00
Moved more parameters to serialization
This commit is contained in:
@ -43,11 +43,12 @@ int main(int argc, char **argv) {
|
||||
typedef GenericHMCRunner<MinimumNorm2> HMCWrapper; // Uses the default minimum norm
|
||||
typedef Grid::XmlReader InputFileReader;
|
||||
|
||||
// Reader
|
||||
// Reader, file should come from command line
|
||||
InputFileReader Reader("input.wilson_gauge.params.xml");
|
||||
|
||||
HMCWrapper TheHMC;
|
||||
|
||||
TheHMC.Parameters.initialize(Reader);
|
||||
TheHMC.Resources.initialize(Reader);
|
||||
|
||||
// Construct observables
|
||||
@ -67,20 +68,13 @@ int main(int argc, char **argv) {
|
||||
|
||||
ActionLevel<HMCWrapper::Field> Level1(1);
|
||||
Level1.push_back(&Waction);
|
||||
//Level1.push_back(WGMod.getPtr());
|
||||
TheHMC.TheAction.push_back(Level1);
|
||||
/////////////////////////////////////////////////////////////
|
||||
|
||||
// Nest MDparameters in the HMCparameters->HMCPayload
|
||||
// make it serializable
|
||||
TheHMC.MDparameters.MDsteps = 20;
|
||||
TheHMC.MDparameters.trajL = 1.0;
|
||||
|
||||
// eventually smearing here
|
||||
// ...
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
TheHMC.ReadCommandLine(argc, argv); // these must be parameters from file
|
||||
TheHMC.Run(); // no smearing
|
||||
|
||||
Grid_finalize();
|
||||
|
@ -83,10 +83,9 @@ int main(int argc, char **argv) {
|
||||
TheHMC.TheAction.push_back(Level1);
|
||||
/////////////////////////////////////////////////////////////
|
||||
|
||||
// Nest MDparameters in the HMCparameters->HMCPayload
|
||||
// make it serializable
|
||||
TheHMC.MDparameters.MDsteps = 20;
|
||||
TheHMC.MDparameters.trajL = 1.0;
|
||||
// HMC parameters are serialisable
|
||||
TheHMC.Parameters.MD.MDsteps = 20;
|
||||
TheHMC.Parameters.MD.trajL = 1.0;
|
||||
|
||||
TheHMC.ReadCommandLine(argc, argv); // these must be parameters from file
|
||||
TheHMC.Run(); // no smearing
|
||||
|
Reference in New Issue
Block a user