CHROMA
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 
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 }
static T & Instance()
Definition: singleton.h:432
Stochastic source enum.
void read(XMLReader &xml, const std::string &path, AsqtadFermActParams &param)
Read parameters.
void write(XMLWriter &xml, const std::string &path, const AsqtadFermActParams &param)
Writer parameters.
int t
Definition: meslate.cc:37
const std::string typeIDString
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
@ T_DILUTE_GAUSS
Definition: enum_loops_s.h:19
@ C_DILUTE_GAUSS
Definition: enum_loops_s.h:20
@ C_MOD_T_DILUTE_GAUSS
Definition: enum_loops_s.h:29
@ COR_MOD_DBL_T_DILUTE_GAUSS
Definition: enum_loops_s.h:28
@ CORNER_DILUTE_GAUSS
Definition: enum_loops_s.h:26
@ GAUSSIAN
Definition: enum_loops_s.h:18
@ MOD_T_DILUTE_GAUSS
Definition: enum_loops_s.h:25
@ PT_DILUTE_GAUSS
Definition: enum_loops_s.h:24
@ COR_DBL_T_DILUTE_GAUSS
Definition: enum_loops_s.h:27
@ P_DILUTE_GAUSS
Definition: enum_loops_s.h:21
@ CP_DILUTE_GAUSS
Definition: enum_loops_s.h:23
@ CT_DILUTE_GAUSS
Definition: enum_loops_s.h:22
::std::string string
Definition: gtest.h:1979