X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/66dd4bd348bacf6b43b59c2b349a913b722c6504..e34773ccb43eefc86dc814b768af85da2873e5ef:/hypercache.h?ds=sidebyside diff --git a/hypercache.h b/hypercache.h index 1a64373..199b7e7 100644 --- a/hypercache.h +++ b/hypercache.h @@ -16,7 +16,7 @@ class hypercache { }; static int initO(const string& cacheid, const int& nequi, const int& nskip, const string& datadir, - char **configmem, const int& configMemSize, const int& cachemode=CACHE_MODE_FULL, ostream *_log=NULL) { + char **configmem, const int& configMemSize, const int& cachemode=CACHE_MODE_RW, ostream *_log=NULL) { observable newobs; newobs.c = NULL; @@ -27,7 +27,7 @@ class hypercache { return Os.size()-1; } static void initC(const string& cacheid, const int& nequi, const int& nskip, const string& datadir, - char **configmem, const int& configMemSize, const int& cachemode=CACHE_MODE_FULL, ostream *_log=NULL) { + char **configmem, const int& configMemSize, const int& cachemode=CACHE_MODE_RW, ostream *_log=NULL) { initCache(&C, cacheid, nequi, nskip, datadir, configmem, configMemSize, cachemode, _log); mostEquilibratedConfig.second = new char[configMemSize]; } @@ -57,10 +57,10 @@ class hypercache { static void initCache(configcache **cache, const string& cacheid, const int& nequi, const int& nskip, const string& datadir, - char **configmem, const int& configMemSize, const int& cachemode=CACHE_MODE_FULL, ostream* _log=NULL); + char **configmem, const int& configMemSize, const int& cachemode=CACHE_MODE_RW, ostream* _log=NULL); static void initCache( configcache **cache, - const string& cacheid, char **configmem, const int& configMemSize, const int& cachemode=CACHE_MODE_FULL); + const string& cacheid, char **configmem, const int& configMemSize, const int& cachemode=CACHE_MODE_RW); static configcache *C; static vector Os;