From: Alexander B. Schmidt Date: Sun, 4 Nov 2012 00:18:00 +0000 (+0100) Subject: ... X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/commitdiff_plain/b5bb9df73bd92a33ce4e350a94829ff67e3afca8 ... --- diff --git a/configcache.cpp b/configcache.cpp index f00e187..556dba7 100644 --- a/configcache.cpp +++ b/configcache.cpp @@ -107,6 +107,7 @@ bool configcache::readConfig() { if(out) *out->log << "CCACHE: Opening dat-file: " << inFiles.back() << endl << flush; + openFileName = inFiles.back(); inFile.open( (DATADIR + "/" + inFiles.back()).c_str(), std::ios::binary ); inFiles.pop_back(); @@ -141,7 +142,10 @@ bool configcache::readConfig() memcpy(configMem, tmpConfig, configSize); return true; } - else inFile.close(); + else { + *out->log << "CCACHE: Closing dat-file: " << openFileName << endl << flush; + inFile.close(); + } } } } diff --git a/configcache.h b/configcache.h index 40963e1..e61bb3f 100644 --- a/configcache.h +++ b/configcache.h @@ -36,6 +36,7 @@ class configcache{ void setPara(const string& parid, const double& value); private: + string openFileName; void finishOutFile(); int getParIndex(const string& parid); int NEQUI;