}
void o815::mainLoop() {
+ *out->log << "OBS: Starting main loop." << endl;
+
for (vector<obs*>::iterator obsit = observables.begin(); obsit != observables.end(); ++obsit) {
(*obsit)->start();
}
+
+ //while( nextParas() ) {
+ //}
+ /*
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();
delete out;
MPI_Finalize();
}
+
+int o815::nextParas()
+{
+ if( paraQ->nextParas() ) {
+ /*
+ setB( (*paraQ)["beta"] );
+ setK( (*paraQ)["kappa"] );
+ setL( (*paraQ)["lambda"] );
+ setM1( (*paraQ)["mu1"] );
+ setM2( (*paraQ)["mu2"] );
+ */
+
+ return 1;
+ }
+ else
+ return 0;
+}