3 #include "latlib/o815/o815.h"
6 #define ALGORITHM "nor"
12 #define ALGORITHM "1mr"
13 #include "sim-1mr.hpp"
14 #elif ALGORITHM_1MRPLUS
15 #define ALGORITHM "1mr+"
16 #include "sim-1mr+.hpp"
17 #elif ALGORITHM_1MRMINUS
18 #define ALGORITHM "1mr-"
19 #include "sim-1mr-.hpp"
20 #elif ALGORITHM_RMINUS
21 #define ALGORITHM "r-"
24 #error NO UPDATE-ALGORITHM DEFINED!
30 const complex<double> _i_ = complex<double>(0.0,1.0);
32 #include "obs_phi2.hpp"
33 #include "obs_phi2_hist.hpp"
34 #include "obs_phip2_hist.hpp"
36 o815::comoption specOps[] = {
37 { "mass", required_argument, NULL, 'm', "set mass", "min:max:inc" },
38 { "", 0, NULL, 0, "", "" }
43 for (int isopt = 0; isopt < O815->parsedSpecOps.size(); isopt++)
44 switch(O815->parsedSpecOps[isopt].first) {
46 O815->paraQ->addRange("mass", O815->parsedSpecOps[isopt].second);
53 cout << "Usage: ./heatbath-"ALGORITHM" [OPTIONS] [obs1] ... [obsN]" << endl << endl;
56 void parseLonelyArgs()
58 for (vector<char*>::iterator lonit = O815->lonelyArgs.begin(); lonit != O815->lonelyArgs.end(); ++lonit) {
59 if ( strcmp(*lonit, "phi2") == 0 ) {
60 *O815->out->log << "MASTER: registered observable: phi2" << endl << flush;
61 O815->observables.push_back(new obs_phi2(O815));
63 else if ( strcmp(*lonit, "phi2_hist") == 0 ) {
64 *O815->out->log << "MASTER: registered observable: phi2_hist" << endl << flush;
65 O815->observables.push_back(new obs_phi2_hist(O815));
67 else if ( strcmp(*lonit, "phip2_hist") == 0 ) {
68 *O815->out->log << "MASTER: registered observable: phip2_hist" << endl << flush;
69 O815->observables.push_back(new obs_phip2_hist(O815));
74 int main (int argc, char *argv[])
76 O815 = new o815(argc, argv, "heatbath-"ALGORITHM, specOps, &helpHeader);
78 O815->addPara("mass", 1);
84 O815->Sim = new sim(O815);