]> git.treefish.org Git - phys/latlib.git/blobdiff - o815/sim.cpp
Moved boost headers in configcache to source file.
[phys/latlib.git] / o815 / sim.cpp
index 6abf7c61ad028eae88ff736b6ac9ce8733e5a7bb..ec1ca89bcbecf959148d5caffeaf47ec42dcf39a 100644 (file)
@@ -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<nskip; iskip++) {
       _makeSweep();
     }
-    createdNoNewConfigs = false;
-  }
-  if (! createdNoNewConfigs) {
-    cout << "::" << hypercache::getNEquiLeft() << endl;
     hypercache::writeC();
   }
-
-  cout << hypercache::getNEquiLeft() << endl;
 }