1 #include "latlib/o815/o815.h"
5 #include "obs_phi2.hpp"
10 o815::comoption specOps[] = {
11 { "mass", required_argument, NULL, 'm', "set mass", "min:max:inc" },
12 { "", 0, NULL, 0, "", "" }
17 for (int isopt = 0; isopt < O815->parsedSpecOps.size(); isopt++)
18 switch(O815->parsedSpecOps[isopt].first) {
20 O815->paraQ->addRange("mass", O815->parsedSpecOps[isopt].second);
27 cout << "Usage: ./heatbath [OPTIONS] [obs1] ... [obsN]" << endl << endl;
30 void parseLonelyArgs()
32 for (vector<char*>::iterator lonit = O815->lonelyArgs.begin(); lonit != O815->lonelyArgs.end(); ++lonit) {
33 if ( strcmp(*lonit, "phi2") == 0 ) {
34 *O815->out->log << "MASTER: registered observable: phi2" << endl << flush;
35 O815->observables.push_back(new obs_phi2(O815));
40 int main (int argc, char *argv[])
42 O815 = new o815(argc, argv, "heatbath", specOps, &helpHeader);
44 O815->addPara("mass", 1);
50 O815->Sim = new sim(O815);