3 #include "latlib/o815/o815.h"
6 #define ALGORITHM "nor"
12 #define ALGORITHM "1mr"
13 #include "sim-1mr.hpp"
15 #error NO UPDATE-ALGORITHM DEFINED!
21 const complex<double> _i_ = complex<double>(0.0,1.0);
23 #include "obs_phi2.hpp"
24 #include "obs_phi2_hist.hpp"
25 #include "obs_phip2_hist.hpp"
27 o815::comoption specOps[] = {
28 { "mass", required_argument, NULL, 'm', "set mass", "min:max:inc" },
29 { "", 0, NULL, 0, "", "" }
34 for (int isopt = 0; isopt < O815->parsedSpecOps.size(); isopt++)
35 switch(O815->parsedSpecOps[isopt].first) {
37 O815->paraQ->addRange("mass", O815->parsedSpecOps[isopt].second);
44 cout << "Usage: ./heatbath-"ALGORITHM" [OPTIONS] [obs1] ... [obsN]" << endl << endl;
47 void parseLonelyArgs()
49 for (vector<char*>::iterator lonit = O815->lonelyArgs.begin(); lonit != O815->lonelyArgs.end(); ++lonit) {
50 if ( strcmp(*lonit, "phi2") == 0 ) {
51 *O815->out->log << "MASTER: registered observable: phi2" << endl << flush;
52 O815->observables.push_back(new obs_phi2(O815));
54 else if ( strcmp(*lonit, "phi2_hist") == 0 ) {
55 *O815->out->log << "MASTER: registered observable: phi2_hist" << endl << flush;
56 O815->observables.push_back(new obs_phi2_hist(O815));
58 else if ( strcmp(*lonit, "phip2_hist") == 0 ) {
59 *O815->out->log << "MASTER: registered observable: phip2_hist" << endl << flush;
60 O815->observables.push_back(new obs_phip2_hist(O815));
65 int main (int argc, char *argv[])
67 O815 = new o815(argc, argv, "heatbath-"ALGORITHM, specOps, &helpHeader);
69 O815->addPara("mass", 1);
75 O815->Sim = new sim(O815);