X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/46e492935d31a36641b8e8a5cd27bd86e7df96c4..074bd4d5f4b73c85da8f105ba3bfca00bf490ac8:/o815/sim.cpp diff --git a/o815/sim.cpp b/o815/sim.cpp index 6abf7c6..ec1ca89 100644 --- a/o815/sim.cpp +++ b/o815/sim.cpp @@ -13,14 +13,7 @@ o815::sim::sim(o815 *_O815, const int& _confmemSize) { } void o815::sim::nextConfig() { - bool readnewconfig; - int nequileftReadConfig; - bool skippedInEqui = false; - bool readNoSingleConfig = true; - bool createdNoNewConfigs = true; - bool readAtLeastOneConfig; - - readAtLeastOneConfig = hypercache::readC(); + bool readAtLeastOneConfig = hypercache::readC(); /* equilibrate if necessary */ if (hypercache::getNEquiLeft() > 0) { @@ -32,23 +25,13 @@ void o815::sim::nextConfig() { _makeSweep(); while( equiProg.madeStep(iequi) ) *log << "SIM: " << equiProg.done()*100 << "% of equilibration done." << endl << flush; } - skippedInEqui = true; - createdNoNewConfigs = false; } - /* make skip if no config could be read */ - if ( (! readAtLeastOneConfig) ) { - cout << "SKIPPING" << endl; + /* make skip if no config could be read or one skip is left after equilibration */ + if ( (! readAtLeastOneConfig) || (hypercache::getNEquiLeft() >= 0) ) { for (int iskip=0; iskip