out = new writeout(comargs.outdir, programid+headMaster(), rank, numprocs, timestamp);
}
+void o815::mainLoop() {
+ for (vector<obs*>::iterator obsit = observables.begin(); obsit != observables.end(); ++obsit) {
+ (*obsit)->start();
+ }
+
+ for (int i=0; i<100; i++) {
+ for (vector<obs*>::iterator obsit = observables.begin(); obsit != observables.end(); ++obsit) {
+ (*obsit)->meas();
+ }
+ }
+
+ for (vector<obs*>::iterator obsit = observables.begin(); obsit != observables.end(); ++obsit) {
+ (*obsit)->finish();
+ }
+}
+
void o815::parseArgs(int argc, char **argv) {
int opt = 0;
return hm.str();
}
+o815::~o815() {
+ if(comargs.outdir=="") {
+ MPI_Barrier(MPI_COMM_WORLD);
+ if(rank==0)
+ cout << "#end" << endl << flush;
+ }
+ delete out;
+ MPI_Finalize();
+}