From ebc593f61243a8ead77dbe9128fdac77377d6734 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Sun, 16 Feb 2014 09:47:35 +0100 Subject: [PATCH] Implemented 0-observable-mode. --- o815/o815.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/o815/o815.cpp b/o815/o815.cpp index 17581ec..df5d635 100644 --- a/o815/o815.cpp +++ b/o815/o815.cpp @@ -129,6 +129,9 @@ void o815::postParaInit() { void o815::mainLoop() { *out->log << "OBS: Starting main loop." << endl; + if ( observables.size() == 0 ) + *out->log << "O815: Running in 0-observable-mode." << endl; + for (vector::iterator obsit = observables.begin(); obsit != observables.end(); ++obsit) (*obsit)->start(); @@ -149,6 +152,7 @@ void o815::mainLoop() { for( int imeas=0; imeas::iterator obsit = observables.begin(); obsit != observables.end(); ++obsit) { bool readnewObs; int nequileftNewObs; @@ -165,9 +169,12 @@ void o815::mainLoop() { } (*obsit)->meas(false, imeas); hypercache::writeO( (*obsit)->ocid ); - } - + } } + + if ( observables.size() == 0 ) + Sim->nextConfig(); + while( measProg.madeStep(imeas) ) *out->log << "O815: " << measProg.done()*100 << "% of measurements done." << endl << flush; } -- 2.39.5