From: Alex Schmidt Date: Tue, 22 Jan 2013 11:06:06 +0000 (+0100) Subject: ... X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/commitdiff_plain/b576d1ec1596088056cd5110f0ee24e8d3dfe913?ds=sidebyside;hp=2f7d03857df74cf9edb56fbc1984152a38530ff9 ... --- 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(); } }