CHROMA
lib
io
enum_io
enum_stochsrc_io.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
/*! \file
3
* \brief Stochastic source enum
4
*/
5
#include "
enum_stochsrc_io.h
"
6
7
#include <string>
8
9
namespace
Chroma
{
10
11
namespace
StochSrcEnv {
12
13
bool
registerAll
(
void
)
14
{
15
bool
success;
16
success =
theStochSrc::Instance
().registerPair(
std::string
(
"Z2NOISE"
),
Z2NOISE
);
17
success &=
theStochSrc::Instance
().registerPair(
std::string
(
"GAUSSIAN"
),
GAUSSIAN
);
18
19
20
success &=
theStochSrc::Instance
().registerPair(
std::string
(
"T_DILUTE_GAUSS"
),
T_DILUTE_GAUSS
);
21
success &=
theStochSrc::Instance
().registerPair(
std::string
(
"C_DILUTE_GAUSS"
),
C_DILUTE_GAUSS
);
22
success &=
theStochSrc::Instance
().registerPair(
std::string
(
"P_DILUTE_GAUSS"
),
P_DILUTE_GAUSS
);
23
success &=
theStochSrc::Instance
().registerPair(
std::string
(
"CT_DILUTE_GAUSS"
),
CT_DILUTE_GAUSS
);
24
success &=
theStochSrc::Instance
().registerPair(
std::string
(
"CP_DILUTE_GAUSS"
),
CP_DILUTE_GAUSS
);
25
success &=
theStochSrc::Instance
().registerPair(
std::string
(
"PT_DILUTE_GAUSS"
),
PT_DILUTE_GAUSS
);
26
success &=
theStochSrc::Instance
().registerPair(
std::string
(
"MOD_T_DILUTE_GAUSS"
),
MOD_T_DILUTE_GAUSS
);
27
success &=
theStochSrc::Instance
().registerPair(
std::string
(
"CORNER_DILUTE_GAUSS"
),
CORNER_DILUTE_GAUSS
);
28
success &=
theStochSrc::Instance
().registerPair(
std::string
(
"COR_DBL_T_DILUTE_GAUSS"
),
COR_DBL_T_DILUTE_GAUSS
);
29
success &=
theStochSrc::Instance
().registerPair(
std::string
(
"COR_MOD_DBL_T_DILUTE_GAUSS"
),
COR_MOD_DBL_T_DILUTE_GAUSS
);
30
success &=
theStochSrc::Instance
().registerPair(
std::string
(
"C_MOD_T_DILUTE_GAUSS"
),
C_MOD_T_DILUTE_GAUSS
);
31
32
33
return
success;
34
}
35
36
bool
registered
=
registerAll
();
37
const
std::string
typeIDString
=
"StochSrc"
;
38
}
39
40
using namespace
StochSrcEnv ;
41
42
//! Read an StochSrc enum
43
void
read
(XMLReader& xml_in,
const
std::string
& path,
VolSrc
&
t
) {
44
theStochSrc::Instance
().read(
typeIDString
, xml_in, path,
t
);
45
}
46
47
//! Write an StochSrc enum
48
void
write
(XMLWriter& xml_out,
const
std::string
& path,
const
VolSrc
&
t
) {
49
theStochSrc::Instance
().write(
typeIDString
, xml_out, path,
t
);
50
}
51
}
Chroma::SingletonHolder::Instance
static T & Instance()
Definition:
singleton.h:432
enum_stochsrc_io.h
Stochastic source enum.
Chroma::read
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams ¶m)
Read parameters.
Definition:
asqtad_fermact_params_s.cc:33
Chroma::write
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams ¶m)
Writer parameters.
Definition:
asqtad_fermact_params_s.cc:40
t
int t
Definition:
meslate.cc:37
Chroma::StochSrcEnv::registerAll
bool registerAll(void)
Definition:
enum_stochsrc_io.cc:13
Chroma::StochSrcEnv::registered
bool registered
Definition:
enum_stochsrc_io.cc:36
Chroma::StochSrcEnv::typeIDString
const std::string typeIDString
Definition:
enum_stochsrc_io.cc:37
Chroma
Asqtad Staggered-Dirac operator.
Definition:
klein_gord.cc:10
Chroma::VolSrc
VolSrc
Definition:
enum_loops_s.h:16
Chroma::Z2NOISE
@ Z2NOISE
Definition:
enum_loops_s.h:17
Chroma::T_DILUTE_GAUSS
@ T_DILUTE_GAUSS
Definition:
enum_loops_s.h:19
Chroma::C_DILUTE_GAUSS
@ C_DILUTE_GAUSS
Definition:
enum_loops_s.h:20
Chroma::C_MOD_T_DILUTE_GAUSS
@ C_MOD_T_DILUTE_GAUSS
Definition:
enum_loops_s.h:29
Chroma::COR_MOD_DBL_T_DILUTE_GAUSS
@ COR_MOD_DBL_T_DILUTE_GAUSS
Definition:
enum_loops_s.h:28
Chroma::CORNER_DILUTE_GAUSS
@ CORNER_DILUTE_GAUSS
Definition:
enum_loops_s.h:26
Chroma::GAUSSIAN
@ GAUSSIAN
Definition:
enum_loops_s.h:18
Chroma::MOD_T_DILUTE_GAUSS
@ MOD_T_DILUTE_GAUSS
Definition:
enum_loops_s.h:25
Chroma::PT_DILUTE_GAUSS
@ PT_DILUTE_GAUSS
Definition:
enum_loops_s.h:24
Chroma::COR_DBL_T_DILUTE_GAUSS
@ COR_DBL_T_DILUTE_GAUSS
Definition:
enum_loops_s.h:27
Chroma::P_DILUTE_GAUSS
@ P_DILUTE_GAUSS
Definition:
enum_loops_s.h:21
Chroma::CP_DILUTE_GAUSS
@ CP_DILUTE_GAUSS
Definition:
enum_loops_s.h:23
Chroma::CT_DILUTE_GAUSS
@ CT_DILUTE_GAUSS
Definition:
enum_loops_s.h:22
testing::internal::string
::std::string string
Definition:
gtest.h:1979
Generated by
1.9.1