X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/a477390b3aa6eea3a7d822a0499816eb0e2bf499..71e93c2cca7c6f967c3c77c3e26c037ad4f4f555:/o815/o815.cpp diff --git a/o815/o815.cpp b/o815/o815.cpp index 9afaa0c..3511d80 100644 --- a/o815/o815.cpp +++ b/o815/o815.cpp @@ -143,16 +143,18 @@ void o815::mainLoop() { hypercache::readO( (*obsit)->ocid, readnewObs, nequileftNewObs ); - if( ! readnewObs ) { + if ( readnewObs && nequileftNewObs < 0 ) { + (*obsit)->meas(true); + } + else { if (!nextAlready) { Sim->nextConfig(); nextAlready = true; } (*obsit)->meas(false); - hypercache::writeO( (*obsit)->ocid, comargs.nmeas ); + hypercache::writeO( (*obsit)->ocid ); } - else - (*obsit)->meas(true); + } while( measProg.madeStep(imeas) ) *out->log << "O815: " << measProg.done()*100 << "% of measurements done." << endl << flush;