]> git.treefish.org Git - phys/latlib.git/commitdiff
...
authorAlex Schmidt <alex@treefish.org>
Tue, 22 Jan 2013 11:06:06 +0000 (12:06 +0100)
committerAlex Schmidt <alex@treefish.org>
Tue, 22 Jan 2013 11:06:06 +0000 (12:06 +0100)
configcache.cpp

index 7409b39d433be5262c48c29bdfe75bd587b7c5e0..96dc470ef8e247b740b2ab8fbcd8c8b670229121 100644 (file)
@@ -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();
          }
        }