};
static int initO(const string& cacheid, const int& nequi, const int& nskip, const string& datadir,
};
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) {
return Os.size()-1;
}
static void initC(const string& cacheid, const int& nequi, const int& nskip, const string& datadir,
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];
}
initCache(&C, cacheid, nequi, nskip, datadir, configmem, configMemSize, cachemode, _log);
mostEquilibratedConfig.second = new char[configMemSize];
}
static void initCache(configcache **cache,
const string& cacheid, const int& nequi, const int& nskip, const string& datadir,
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);
- 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);