1
0
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:
Guido Cossu
2016-10-10 11:49:55 +01:00
parent 65f61bb3bf
commit 293df6cd20
3 changed files with 61 additions and 15 deletions

View File

@@ -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);
};
};
}