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