mirror of
https://github.com/paboyle/Grid.git
synced 2025-07-31 11:47:06 +01:00
Generalising the HMCRunner and moving parameters to the user level
This commit is contained in:
@@ -59,7 +59,15 @@ class HmcRunner : public ScalarBinaryHmcRunner {
|
||||
TheAction.push_back(Level1);
|
||||
|
||||
|
||||
Run(argc, argv);
|
||||
// Add observables and checkpointers
|
||||
int SaveInterval = 1;
|
||||
std::string format = std::string("IEEE64BIG");
|
||||
std::string conf_prefix = std::string("ckpoint_scalar_lat");
|
||||
std::string rng_prefix = std::string("ckpoint_scalar_rng");
|
||||
BinaryHmcCheckpointer<ScalarBinaryHmcRunner::ImplPolicy> Checkpoint(conf_prefix, rng_prefix, SaveInterval, format);
|
||||
ObservablesList.push_back(&Checkpoint);
|
||||
|
||||
Run(argc, argv, Checkpoint);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user