if( inFile.is_open() )
{
if (openFileDesc.doVirtualEquilibration) {
- *out->log << "CCACHE: Trying virtual equilibration." << endl << flush;
+ if(out) *out->log << "CCACHE: Trying virtual equilibration." << endl << flush;
openFileDesc.doVirtualEquilibration = false;
for (int iskip=0; iskip < (NEQUI-openFileDesc.nequi)/openFileDesc.nskip; iskip++) {
if( readConfigToMem(tmpConfig) != configSize || ! inFile.is_open() )
return true;
}
else {
- *out->log << "CCACHE: Closing dat-file: " << openFileDesc.filename << endl << flush;
+ if(out) *out->log << "CCACHE: Closing dat-file: " << openFileDesc.filename << endl << flush;
inFile.close();
}
}