CHROMA
lib
update
molecdyn
predictor
linear_extrap_predictor.cc
Go to the documentation of this file.
1
#include "
chromabase.h
"
2
#include "
update/molecdyn/predictor/linear_extrap_predictor.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
19
return
new
LinearExtrapolation4DChronoPredictor
;
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
{
52
return
new
LinearExtrapolation5DChronoPredictor
(
N5
);
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
}
chromabase.h
Primary include file for CHROMA library code.
Chroma::AbsChronologicalPredictor4D< LatticeFermion >
Chroma::AbsChronologicalPredictor5D< LatticeFermion >
Chroma::LinearExtrapolation4DChronoPredictor
Last solution predictor.
Definition:
linear_extrap_predictor.h:31
Chroma::LinearExtrapolation5DChronoPredictor
Last solution predictor.
Definition:
linear_extrap_predictor.h:147
Chroma::SingletonHolder::Instance
static T & Instance()
Definition:
singleton.h:432
N5
int N5
Definition:
eoprec_dwf_fermact_array_w.cc:78
linear_extrap_predictor.h
Linear extrapolation predictor.
Chroma::AsqtadFermActEnv::registered
static bool registered
Local registration flag.
Definition:
asqtad_fermact_s.cc:49
Chroma::LinearExtrapolation4DChronoPredictorEnv::name
const std::string name
Definition:
linear_extrap_predictor.cc:26
Chroma::LinearExtrapolation4DChronoPredictorEnv::registerAll
bool registerAll()
Register all the factories.
Definition:
linear_extrap_predictor.cc:29
Chroma::LinearExtrapolation5DChronoPredictorEnv::registerAll
bool registerAll()
Register all the factories.
Definition:
linear_extrap_predictor.cc:62
Chroma::LinearExtrapolation5DChronoPredictorEnv::name
const std::string name
Definition:
linear_extrap_predictor.cc:59
Chroma
Asqtad Staggered-Dirac operator.
Definition:
klein_gord.cc:10
testing::internal::string
::std::string string
Definition:
gtest.h:1979
Generated by
1.9.1