]> git.treefish.org Git - phys/latlib.git/blobdiff - configcache.cpp
...
[phys/latlib.git] / configcache.cpp
index 7409b39d433be5262c48c29bdfe75bd587b7c5e0..96dc470ef8e247b740b2ab8fbcd8c8b670229121 100644 (file)
@@ -135,7 +135,7 @@ bool configcache::readConfig()
       if( inFile.is_open() ) 
        {
          if (openFileDesc.doVirtualEquilibration) {
       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() )
            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 {
              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();
          }
        }
            inFile.close();
          }
        }