X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/594f56b186b5d2f5e25293d6952c9325576aa080..07516f0b1615a95f3e68d073adf4cfda584b99fa:/o815/o815.h?ds=inline diff --git a/o815/o815.h b/o815/o815.h index 79d427d..0e2a611 100644 --- a/o815/o815.h +++ b/o815/o815.h @@ -42,12 +42,16 @@ class o815 { class sim { public: sim(o815 *_O815, const int& _confmemSize); + ~sim (); void nextConfig(); char *confMem; virtual void _newParas()=0; int nequi, nskip; + void resetConfig(); private: virtual void _makeSweep()=0; + virtual void _resetConfig()=0; + char *startConfiguration; protected: o815 *O815; ostream *log; @@ -64,6 +68,7 @@ class o815 { string outdir; int idonly; int showjobnum; + string startconfig; } comargs; struct comoption { @@ -83,7 +88,7 @@ class o815 { vector observables; sim* Sim; void mainLoop(); - string headMaster(); + string headMaster( bool hashedrange=false ); void addPara(const string& paraid, const double& paraDefault); void addComOption(const char* name, int has_arg, int *flag, int val, const char* optdesc, const char* argdesc); vector< pair > parsedSpecOps; @@ -98,6 +103,7 @@ private: int nextParas(); comoption* getOptionByVal(int val); static void readCacheArgs(const string& arg, string& cachedir, int& cachemode); + unsigned long hash(const string& str); }; #endif