+ while( (!inFile.is_open()) && inFiles.size() > 0 ) {
+ string inFileParaString;
+
+ 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 );
+
+ if( openFileDesc.superextended ) {
+ getline( inFile, inFileParaString );
+ if( inFileParaString != paraString() ) {
+ if(log) *log << "CCACHE: Parastring does not match. Closing dat-file..." << endl << flush;
+ inFile.close();
+ }
+ }
+
+ inFiles.erase(inFileIt);
+
+ if( !inFile.is_open() ) continue;
+
+ ioBuffers->in = new boost::iostreams::filtering_istreambuf;
+ ioBuffers->in->push( boost::iostreams::bzip2_decompressor() );
+ ioBuffers->in->push(inFile);
+ }