4 #include "latlib/o815/o815.h"
7 #define ALGORITHM "metro"
8 #include "sim-metro.hpp"
10 #include "sim-nonmetro.hpp"
11 #define ALGORITHM "AhbMhb"
12 #elif ALGORITHM_AHBMOR
13 #include "sim-nonmetro.hpp"
14 #define ALGORITHM "AhbMor"
15 #elif ALGORITHM_AORMHB
16 #include "sim-nonmetro.hpp"
17 #define ALGORITHM "AorMhb"
18 #elif ALGORITHM_AORMOR
19 #include "sim-nonmetro.hpp"
20 #define ALGORITHM "AorMor"
22 #include "sim-nonmetro.hpp"
23 #define ALGORITHM "AorM0"
25 #include "sim-nonmetro.hpp"
26 #define ALGORITHM "AhbM0"
28 #include "sim-nonmetro.hpp"
29 #define ALGORITHM "A0Mor"
31 #include "sim-nonmetro.hpp"
32 #define ALGORITHM "A0Mhb"
34 #error NO UPDATE-ALGORITHM DEFINED!
44 const complex<double> _i_ = complex<double>(0.0,1.0);
46 #include "obs_phi2.hpp"
47 #include "obs_phi2_hist.hpp"
48 #include "obs_phip2_hist.hpp"
50 o815::comoption specOps[] = {
51 { "mass", required_argument, NULL, 'm', "set mass", "min:max:inc" },
52 { "", 0, NULL, 0, "", "" }
57 for (int isopt = 0; isopt < O815->parsedSpecOps.size(); isopt++)
58 switch(O815->parsedSpecOps[isopt].first) {
60 O815->paraQ->addRange("mass", O815->parsedSpecOps[isopt].second);
67 cout << "Usage: ./heatbath-"ALGORITHM" [OPTIONS] [obs1] ... [obsN]" << endl << endl;
70 void parseLonelyArgs()
72 for (vector<char*>::iterator lonit = O815->lonelyArgs.begin(); lonit != O815->lonelyArgs.end(); ++lonit) {
73 if ( strcmp(*lonit, "phi2") == 0 ) {
74 *O815->out->log << "MASTER: registered observable: phi2" << endl << flush;
75 O815->observables.push_back(new obs_phi2(O815));
77 else if ( strcmp(*lonit, "phi2_hist") == 0 ) {
78 *O815->out->log << "MASTER: registered observable: phi2_hist" << endl << flush;
79 O815->observables.push_back(new obs_phi2_hist(O815));
81 else if ( strcmp(*lonit, "phip2_hist") == 0 ) {
82 *O815->out->log << "MASTER: registered observable: phip2_hist" << endl << flush;
83 O815->observables.push_back(new obs_phip2_hist(O815));
88 int main (int argc, char *argv[])
90 O815 = new o815(argc, argv, "heatbath-"ALGORITHM, specOps, &helpHeader);
92 O815->addPara("mass", 1);
98 O815->Sim = new sim(O815);