CHROMA
last_solution_predictor.cc
Go to the documentation of this file.
1 #include "chromabase.h"
3 
4 
5 namespace Chroma
6 {
7 
8  namespace LastSolution4DChronoPredictorEnv
9  {
10  namespace
11  {
12  // Create a new 4D Zero Guess Predictor
13  // No params to read -- but preserve form
14  AbsChronologicalPredictor4D<LatticeFermion>* createPredictor(XMLReader& xml,
15  const std::string& path)
16  {
17  // No params to read
19  }
20 
21  //! Local registration flag
22  bool registered = false;
23  }
24 
25  const std::string name = "LAST_SOLUTION_4D_PREDICTOR";
26 
27  //! Register all the factories
28  bool registerAll()
29  {
30  bool success = true;
31  if (! registered)
32  {
33  success &= The4DChronologicalPredictorFactory::Instance().registerObject(name, createPredictor);
34  registered = true;
35  }
36  return success;
37  }
38  }
39 
40 
41  namespace LastSolution5DChronoPredictorEnv
42  {
43  namespace
44  {
45  // Create a new 5D Zero Guess Predictor
46  // No params to read
47  AbsChronologicalPredictor5D<LatticeFermion>* createPredictor(const int N5,
48  XMLReader& xml,
49  const std::string& path)
50  {
52  }
53 
54  //! Local registration flag
55  bool registered = false;
56  }
57 
58  const std::string name = "LAST_SOLUTION_5D_PREDICTOR";
59 
60  //! Register all the factories
61  bool registerAll()
62  {
63  bool success = true;
64  if (! registered)
65  {
66  success &= The5DChronologicalPredictorFactory::Instance().registerObject(name, createPredictor);
67  registered = true;
68  }
69  return success;
70  }
71 
72  }
73 
74 }
Primary include file for CHROMA library code.
static T & Instance()
Definition: singleton.h:432
Last solution predictor.
static bool registered
Local registration flag.
bool registerAll()
Register all the factories.
bool registerAll()
Register all the factories.
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
::std::string string
Definition: gtest.h:1979