CHROMA
lib
io
enum_io
enum_gaugeacttype_io.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
/*! \file
3
* \brief Gauge action enum
4
*/
5
#include "
enum_gaugeacttype_io.h
"
6
7
/* *********!!!!!!!!!!!!!!!!!!! WARNING WARNING !!!!!!!!!!!!!!!! *********** */
8
// These actions are only relevant to Al Hart's topological code.
9
// The production HMC etc does not use these enums but works off its
10
// own factory
11
/* *********!!!!!!!!!!!!!!!!!!! WARNING WARNING !!!!!!!!!!!!!!!! *********** */
12
13
#include <string>
14
15
namespace
Chroma
{
16
17
namespace
GaugeActTypeEnv {
18
19
bool
registerAll
(
void
)
20
{
21
bool
success;
22
success =
theGaugeActTypeMap::Instance
().registerPair(
std::string
(
"WILSON"
),
GAUGE_ACT_WILSON
);
23
success =
theGaugeActTypeMap::Instance
().registerPair(
std::string
(
"SYMZK_1X2"
),
GAUGE_ACT_SYMZK_1X2
);
24
success =
theGaugeActTypeMap::Instance
().registerPair(
std::string
(
"IWASAKI"
),
GAUGE_ACT_IWASAKI
);
25
success =
theGaugeActTypeMap::Instance
().registerPair(
std::string
(
"DBW2"
),
GAUGE_ACT_DBW2
);
26
success =
theGaugeActTypeMap::Instance
().registerPair(
std::string
(
"3_LOOP_IMP"
),
GAUGE_ACT_3_LOOP_IMP
);
27
success =
theGaugeActTypeMap::Instance
().registerPair(
std::string
(
"4_LOOP_IMP"
),
GAUGE_ACT_4_LOOP_IMP
);
28
success =
theGaugeActTypeMap::Instance
().registerPair(
std::string
(
"5_LOOP_IMP"
),
GAUGE_ACT_5_LOOP_IMP
);
29
return
success;
30
}
31
32
//! The number of different shaped loops in largest action
33
const
int
No_fmn
= 5;
34
35
const
std::string
typeIDString
=
"GaugeActType"
;
36
bool
registered
=
registerAll
();
37
}
38
using namespace
GaugeActTypeEnv;
39
40
//! Read an GaugeActType enum
41
void
read
(XMLReader& xml_in,
const
std::string
& path,
GaugeActType
&
t
) {
42
theGaugeActTypeMap::Instance
().read(
typeIDString
, xml_in, path,
t
);
43
}
44
45
//! Write an GaugeActType enum
46
void
write
(XMLWriter& xml_out,
const
std::string
& path,
const
GaugeActType
&
t
) {
47
theGaugeActTypeMap::Instance
().write(
typeIDString
, xml_out, path,
t
);
48
}
49
}
Chroma::SingletonHolder::Instance
static T & Instance()
Definition:
singleton.h:432
enum_gaugeacttype_io.h
Gauge action 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
Chroma::GaugeActType
GaugeActType
GaugeAct type.
Definition:
enum_gaugeacttype_io.h:29
Chroma::GAUGE_ACT_5_LOOP_IMP
@ GAUGE_ACT_5_LOOP_IMP
Definition:
enum_gaugeacttype_io.h:34
Chroma::GAUGE_ACT_IWASAKI
@ GAUGE_ACT_IWASAKI
Definition:
enum_gaugeacttype_io.h:32
Chroma::GAUGE_ACT_SYMZK_1X2
@ GAUGE_ACT_SYMZK_1X2
Definition:
enum_gaugeacttype_io.h:31
Chroma::GAUGE_ACT_3_LOOP_IMP
@ GAUGE_ACT_3_LOOP_IMP
Definition:
enum_gaugeacttype_io.h:36
Chroma::GAUGE_ACT_DBW2
@ GAUGE_ACT_DBW2
Definition:
enum_gaugeacttype_io.h:33
Chroma::GAUGE_ACT_WILSON
@ GAUGE_ACT_WILSON
Definition:
enum_gaugeacttype_io.h:30
Chroma::GAUGE_ACT_4_LOOP_IMP
@ GAUGE_ACT_4_LOOP_IMP
Definition:
enum_gaugeacttype_io.h:35
t
int t
Definition:
meslate.cc:37
Chroma::GaugeActTypeEnv::registered
bool registered
Definition:
enum_gaugeacttype_io.cc:36
Chroma::GaugeActTypeEnv::No_fmn
const int No_fmn
The number of different shaped loops in largest action.
Definition:
enum_gaugeacttype_io.cc:33
Chroma::GaugeActTypeEnv::registerAll
bool registerAll(void)
Definition:
enum_gaugeacttype_io.cc:19
Chroma::GaugeActTypeEnv::typeIDString
const std::string typeIDString
Definition:
enum_gaugeacttype_io.cc:35
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