X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/46e492935d31a36641b8e8a5cd27bd86e7df96c4..3675da388f7ca12cdc6d93f4a8b94ef4bdd96b19:/hypercache.h?ds=inline diff --git a/hypercache.h b/hypercache.h index 79fe825..c5f548a 100644 --- a/hypercache.h +++ b/hypercache.h @@ -19,15 +19,16 @@ class hypercache { 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) { initCache(&C, cacheid, nequi, nskip, datadir, configmem, configMemSize, cachemode, _log); + mostEquilibratedConfig.second = new char[configMemSize]; } static int getNEquiLeft() { return nequileft; } static void addPara(const string& parid, const double& val=0); static void setPara(const string& parid, const double& value); - static void readO(int obsid, bool& readnewconfig, int& nequileft); + static void readO(int obsid, bool *readNewObsConfig, int *nequiObsLeft); static bool readC(); - static void writeO(int obsid, int actnequi); + static void writeO(int obsid); static void writeC(); static void writeHeaderO(int obsid, const string& headerid, char *header, long unsigned int size, int actnequi) { Os[obsid]->writeHeader(headerid, header, size, actnequi); } static void *getHeaderO(int obsid, const string& headerid) { Os[obsid]->getHeader(headerid); } @@ -65,6 +66,10 @@ class hypercache { static int NEQUI; static int NSKIP; static int nequileft; + + static pair mostEquilibratedConfig; + + static int lastWrittenObsEquis; }; #endif