Now action factory support different Fields (templated)

This commit is contained in:
Guido Cossu committed 2017-01-30 14:22:41 +00:00
1 parent f05d0565aa
commit 16be6d378c
3 files changed
+29 -31

No files matched your search

+1 -4
View File
@@ -269,10 +269,7 @@ private:
// here gauge
Read.push("Action");
do{
// I need to modify the Factory generator depending on the Implementation
// Solution: pass the field as a template parameter
//auto &ActionFactory = HMC_ScalarActionModuleFactory<gauge_string, ReaderClass>::getInstance();
auto &ActionFactory = HMC_LGTActionModuleFactory<gauge_string, ReaderClass>::getInstance();
auto &ActionFactory = HMC_ActionModuleFactory<gauge_string, typename ImplementationPolicy::Field, ReaderClass>::getInstance();
std::string action_type;
Read.readDefault("name", action_type);
std::cout << ActionFactory.getBuilderList() << std::endl; // temporary