X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/3a8bc55b2fdece524393351af7996d743931c5b3..f22a863cf42971e874834d74a152b972f5dc6a03:/configcache.cpp diff --git a/configcache.cpp b/configcache.cpp index 7409b39..96dc470 100644 --- a/configcache.cpp +++ b/configcache.cpp @@ -135,7 +135,7 @@ bool configcache::readConfig() 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() ) @@ -149,7 +149,7 @@ bool configcache::readConfig() 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(); } }