}
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) {
_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) ) {
+ /* make skip if no config could be read or one skip is left after equilibration */
+ if ( (! readAtLeastOneConfig) || (hypercache::getNEquiLeft() == 0) ) {
cout << "SKIPPING" << endl;
for (int iskip=0; iskip<nskip; iskip++) {
_makeSweep();
}
- createdNoNewConfigs = false;
- }
-
- if (! createdNoNewConfigs) {
- cout << "::" << hypercache::getNEquiLeft() << endl;
hypercache::writeC();
}