X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/46e492935d31a36641b8e8a5cd27bd86e7df96c4..71e93c2cca7c6f967c3c77c3e26c037ad4f4f555:/configcache.cpp?ds=sidebyside diff --git a/configcache.cpp b/configcache.cpp index 35e8548..4c7963d 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,9 +190,9 @@ 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; return; } @@ -204,6 +200,13 @@ void configcache::readConfig(bool& readnewconfig, int& nequileft, vector 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 +221,33 @@ void configcache::readConfig(bool& readnewconfig, int& nequileft, vector