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!
18 #include "obs_phi2.hpp"
19 #include "obs_phi2_hist.hpp"
24 const complex<double> _i_ = complex<double>(0.0,1.0);
26 o815::comoption specOps[] = {
27 { "mass", required_argument, NULL, 'm', "set mass", "min:max:inc" },
28 { "", 0, NULL, 0, "", "" }
33 for (int isopt = 0; isopt < O815->parsedSpecOps.size(); isopt++)
34 switch(O815->parsedSpecOps[isopt].first) {
36 O815->paraQ->addRange("mass", O815->parsedSpecOps[isopt].second);
43 cout << "Usage: ./heatbath-"ALGORITHM" [OPTIONS] [obs1] ... [obsN]" << endl << endl;
46 void parseLonelyArgs()
48 for (vector<char*>::iterator lonit = O815->lonelyArgs.begin(); lonit != O815->lonelyArgs.end(); ++lonit) {
49 if ( strcmp(*lonit, "phi2") == 0 ) {
50 *O815->out->log << "MASTER: registered observable: phi2" << endl << flush;
51 O815->observables.push_back(new obs_phi2(O815));
53 else if ( strcmp(*lonit, "phi2_hist") == 0 ) {
54 *O815->out->log << "MASTER: registered observable: phi2_hist" << endl << flush;
55 O815->observables.push_back(new obs_phi2_hist(O815));
60 int main (int argc, char *argv[])
62 O815 = new o815(argc, argv, "heatbath-"ALGORITHM, specOps, &helpHeader);
64 O815->addPara("mass", 1);
70 O815->Sim = new sim(O815);