X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/e46233799c25067188549528947ae980579a5e8c..6ad2fe3a6550b77888c46b17f81d8ab74406649d:/o815/o815.cpp diff --git a/o815/o815.cpp b/o815/o815.cpp index ff0b1ae..9afaa0c 100644 --- a/o815/o815.cpp +++ b/o815/o815.cpp @@ -135,18 +135,21 @@ void o815::mainLoop() { *out->log << " " << (*obsit)->obsid; *out->log << endl << flush; - Sim->toEquilibrate = true; - for( int imeas=0; imeas::iterator obsit = observables.begin(); obsit != observables.end(); ++obsit) { - if( hypercache::readO( (*obsit)->ocid ) != -1 ) { + bool readnewObs; + int nequileftNewObs; + + hypercache::readO( (*obsit)->ocid, readnewObs, nequileftNewObs ); + + if( ! readnewObs ) { if (!nextAlready) { Sim->nextConfig(); nextAlready = true; } (*obsit)->meas(false); - hypercache::writeO( (*obsit)->ocid ); + hypercache::writeO( (*obsit)->ocid, comargs.nmeas ); } else (*obsit)->meas(true);