}
void o815::mainLoop() {
- for (vector<obs*>::iterator obsit = observables.begin(); obsit != observables.end(); ++obsit) {
+ *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) {
+ for (vector<obs*>::iterator obsit = observables.begin(); obsit != observables.end(); ++obsit)
(*obsit)->finish();
- }
}
void o815::parseArgs(int argc, char **argv) {
delete out;
MPI_Finalize();
}
+
+int o815::nextParas()
+{
+ if( paraQ->nextParas() ) {
+ for (vector<string>::iterator parait = paraQ->allParaIds.begin(); parait != paraQ->allParaIds.end(); ++parait)
+ hypercache::setPara(*parait, (*paraQ)[*parait]);
+ return 1;
+ }
+ else
+ return 0;
+}