CASM  1.1.0
A Clusters Approach to Statistical Mechanics
MonteDefinitions.cc
Go to the documentation of this file.
2 
4 
5 namespace CASM {
6 
7 const std::string traits<Monte::ENSEMBLE>::name = "ensemble";
8 
9 const std::multimap<Monte::ENSEMBLE, std::vector<std::string> >
10  traits<Monte::ENSEMBLE>::strval = {
12  {"GrandCanonical", "grand_canonical"}},
13  {Monte::ENSEMBLE::Canonical, {"Canonical", "canonical"}}};
14 
15 namespace Monte {
18 } // namespace Monte
19 
20 const std::string traits<Monte::METHOD>::name = "method";
21 
22 const std::multimap<Monte::METHOD, std::vector<std::string> >
23  traits<Monte::METHOD>::strval = {
24  {Monte::METHOD::Metropolis, {"Metropolis", "metropolis"}},
25  {Monte::METHOD::LTE1, {"LTE1", "lte1"}}};
26 
27 namespace Monte {
30 } // namespace Monte
31 
32 const std::string traits<Monte::SAMPLE_MODE>::name = "sample_by";
33 
34 const std::multimap<Monte::SAMPLE_MODE, std::vector<std::string> >
35  traits<Monte::SAMPLE_MODE>::strval = {
36  {Monte::SAMPLE_MODE::STEP, {"Step", "step"}},
37  {Monte::SAMPLE_MODE::PASS, {"Pass", "pass"}}};
38 
39 namespace Monte {
42 } // namespace Monte
43 
44 const std::string traits<Monte::DRIVE_MODE>::name = "mode";
45 
46 const std::multimap<Monte::DRIVE_MODE, std::vector<std::string> >
47  traits<Monte::DRIVE_MODE>::strval = {
48  {Monte::DRIVE_MODE::INCREMENTAL, {"Incremental", "incremental"}},
49  {Monte::DRIVE_MODE::CUSTOM, {"Custom", "custom"}}};
50 
51 namespace Monte {
54 } // namespace Monte
55 
56 const std::string traits<Monte::ENUM_SAMPLE_MODE>::name = "sample_mode";
57 
58 const std::multimap<Monte::ENUM_SAMPLE_MODE, std::vector<std::string> >
59  traits<Monte::ENUM_SAMPLE_MODE>::strval = {
60  {Monte::ENUM_SAMPLE_MODE::ON_ACCEPT, {"on_accept"}},
61  {Monte::ENUM_SAMPLE_MODE::ON_SAMPLE, {"on_sample"}}};
62 
63 namespace Monte {
66 } // namespace Monte
67 } // namespace CASM
#define ENUM_JSON_IO_DEF(ENUM)
Definition: json_io.hh:15
#define ENUM_IO_DEF(ENUM)
Definition: stream_io.hh:13
GenericDatumFormatter< std::string, ConfigEnumDataType > name()
METHOD
Monte Carlo method type.
SAMPLE_MODE
How often to sample runs.
DRIVE_MODE
How to change conditions.
ENSEMBLE
Monte Carlo ensemble type.
ENUM_SAMPLE_MODE
How often to sample runs.
Main CASM namespace.
Definition: APICommand.hh:8