+ while( nextParas() ) {
+ *out->log << endl << "O815: < ";
+ for (vector<string>::iterator parait = paraQ->allParaIds.begin(); parait != paraQ->allParaIds.end(); ++parait)
+ *out->log << *parait << "=" << (*paraQ)[*parait] << " ";
+ *out->log << ">" << endl << flush;
+
+ progress measProg(comargs.nmeas);
+
+ *out->log << "OBS: Starting measurement of observables:";
+ for (vector<obs*>::iterator obsit = observables.begin(); obsit != observables.end(); ++obsit)
+ *out->log << " " << (*obsit)->obsid;
+ *out->log << endl << flush;
+
+ Sim->toEquilibrate = true;
+
+ for( int imeas=0; imeas<comargs.nmeas; imeas++ ) {
+ bool nextAlready = false;
+ for (vector<obs*>::iterator obsit = observables.begin(); obsit != observables.end(); ++obsit) {
+ if( hypercache::readO( (*obsit)->ocid ) != -1 ) {
+ if (!nextAlready) {
+ Sim->nextConfig();
+ nextAlready = true;
+ }
+ (*obsit)->meas(false);
+ hypercache::writeO( (*obsit)->ocid );
+ }
+ else
+ (*obsit)->meas(true);
+ }
+ while( measProg.madeStep(imeas) )
+ *out->log << "O815: " << measProg.done()*100 << "% of measurements done." << endl << flush;
+ }
+ for (vector<obs*>::iterator obsit = observables.begin(); obsit != observables.end(); ++obsit)
+ (*obsit)->finish();