3 #include "latlib/o815/o815.h"
6 #define ALGORITHM "metro"
7 #include "sim-metro.hpp"
9 #include "sim-nonmetro.hpp"
10 #define ALGORITHM "AhbMhb"
11 #elif ALGORITHM_AHBMOR
12 #include "sim-nonmetro.hpp"
13 #define ALGORITHM "AhbMor"
14 #elif ALGORITHM_AORMHB
15 #include "sim-nonmetro.hpp"
16 #define ALGORITHM "AorMhb"
17 #elif ALGORITHM_AORMOR
18 #include "sim-nonmetro.hpp"
19 #define ALGORITHM "AorMor"
21 #include "sim-nonmetro.hpp"
22 #define ALGORITHM "AorM0"
24 #include "sim-nonmetro.hpp"
25 #define ALGORITHM "AhbM0"
27 #include "sim-nonmetro.hpp"
28 #define ALGORITHM "A0Mor"
30 #include "sim-nonmetro.hpp"
31 #define ALGORITHM "A0Mhb"
33 #error NO UPDATE-ALGORITHM DEFINED!
43 const complex<double> _i_ = complex<double>(0.0,1.0);
45 #include "obs_phi2.hpp"
46 #include "obs_phi2_hist.hpp"
47 #include "obs_phip2_hist.hpp"
49 o815::comoption specOps[] = {
50 { "mass", required_argument, NULL, 'm', "set mass", "min:max:inc" },
51 { "", 0, NULL, 0, "", "" }
56 for (int isopt = 0; isopt < O815->parsedSpecOps.size(); isopt++)
57 switch(O815->parsedSpecOps[isopt].first) {
59 O815->paraQ->addRange("mass", O815->parsedSpecOps[isopt].second);
66 cout << "Usage: ./heatbath-"ALGORITHM" [OPTIONS] [obs1] ... [obsN]" << endl << endl;
69 void parseLonelyArgs()
71 for (vector<char*>::iterator lonit = O815->lonelyArgs.begin(); lonit != O815->lonelyArgs.end(); ++lonit) {
72 if ( strcmp(*lonit, "phi2") == 0 ) {
73 *O815->out->log << "MASTER: registered observable: phi2" << endl << flush;
74 O815->observables.push_back(new obs_phi2(O815));
76 else if ( strcmp(*lonit, "phi2_hist") == 0 ) {
77 *O815->out->log << "MASTER: registered observable: phi2_hist" << endl << flush;
78 O815->observables.push_back(new obs_phi2_hist(O815));
80 else if ( strcmp(*lonit, "phip2_hist") == 0 ) {
81 *O815->out->log << "MASTER: registered observable: phip2_hist" << endl << flush;
82 O815->observables.push_back(new obs_phip2_hist(O815));
87 int main (int argc, char *argv[])
89 O815 = new o815(argc, argv, "heatbath-"ALGORITHM, specOps, &helpHeader);
91 O815->addPara("mass", 1);
97 O815->Sim = new sim(O815);