3 #include "latlib/o815/o815.h"
5 #ifdef HEATLESS_ALGORITHM
6 #define ALGORITHM "heatless"
7 #include "sim-heatless.hpp"
8 #elif USUALHEAT_ALGORITHM
9 #define ALGORITHM "usualheat"
10 #include "sim-usualheat.hpp"
11 #elif RELAXEDHEAT_ALGORITHM
12 #define ALGORITHM "relaxedheat"
13 #include "sim-relaxedheat.hpp"
15 #error NO UPDATE-ALGORITHM DEFINED!
18 #include "obs_phi2.hpp"
23 const complex<double> _i_ = complex<double>(0.0,1.0);
25 o815::comoption specOps[] = {
26 { "mass", required_argument, NULL, 'm', "set mass", "min:max:inc" },
27 { "", 0, NULL, 0, "", "" }
32 for (int isopt = 0; isopt < O815->parsedSpecOps.size(); isopt++)
33 switch(O815->parsedSpecOps[isopt].first) {
35 O815->paraQ->addRange("mass", O815->parsedSpecOps[isopt].second);
42 cout << "Usage: ./heatbath-"ALGORITHM" [OPTIONS] [obs1] ... [obsN]" << endl << endl;
45 void parseLonelyArgs()
47 for (vector<char*>::iterator lonit = O815->lonelyArgs.begin(); lonit != O815->lonelyArgs.end(); ++lonit) {
48 if ( strcmp(*lonit, "phi2") == 0 ) {
49 *O815->out->log << "MASTER: registered observable: phi2" << endl << flush;
50 O815->observables.push_back(new obs_phi2(O815));
55 int main (int argc, char *argv[])
57 O815 = new o815(argc, argv, "heatbath-"ALGORITHM, specOps, &helpHeader);
59 O815->addPara("mass", 1);
65 O815->Sim = new sim(O815);