X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/46e492935d31a36641b8e8a5cd27bd86e7df96c4..20acc11c8054200c02794f58e3cc63851b5627ff:/configcache.cpp?ds=inline diff --git a/configcache.cpp b/configcache.cpp index 35e8548..0cabc9d 100644 --- a/configcache.cpp +++ b/configcache.cpp @@ -72,8 +72,6 @@ bool configcache::isValidInFile(const string& infile, infiledesc *filedesc) string truncIn, truncOut; filedesc->filename = infile; - filedesc->doVirtualEquilibration = false; - filedesc->firstConfig = true; if( infile.size() < 4 ) return false; @@ -98,8 +96,6 @@ bool configcache::isValidInFile(const string& infile, infiledesc *filedesc) return false; break; case 2: - if (atoi(inParts) < NEQUI) - filedesc->doVirtualEquilibration = true; filedesc->nequi = atoi(inParts); break; case 3: @@ -194,16 +190,24 @@ void configcache::readConfig(bool& readnewconfig, int& nequileft, vector::iterator inFileIt = getNextInfile(excludeFileHashes); + int iDidVirtualSkips; if( (!inFile.is_open()) && inFileIt == inFiles.end() ) { - cout << "RETURNING..." << endl; - nequileft = nequileft_internal; + if (readnewconfig) + nequileft = nequileft_internal; return; } while( (!inFile.is_open()) && inFiles.size() > 0 ) { openFileDesc = *inFileIt; + if (openFileDesc.nequi < NEQUI) + doVirtualEquilibration = true; + else + doVirtualEquilibration = false; + + firstUsedConfig = true; + if(log) *log << "CCACHE: Opening dat-file: " << inFileIt->filename << endl << flush; inFile.open( (DATADIR + "/" + inFileIt->filename).c_str(), std::ios::binary ); @@ -218,32 +222,33 @@ void configcache::readConfig(bool& readnewconfig, int& nequileft, vector