X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/f46daea04f594f9f386ac6514733ec1eff860462..7d78a412f4cde48ce35f8f4cbe77c2a333484fa8:/o815/o815.h?ds=inline diff --git a/o815/o815.h b/o815/o815.h index 69a8276..4f741a1 100644 --- a/o815/o815.h +++ b/o815/o815.h @@ -3,7 +3,6 @@ #include #include -#include #include #include @@ -20,15 +19,16 @@ class o815 { class obs { public: - obs(const string& _obsid, const string& _datadesc, o815 *_O815, const int& _obsmemSize); + obs(const string& _obsid, const string& _datadesc, o815 *_O815, const int& _obsmemSize, const string& _obsidpostfix=""); void finish(); - void meas(bool loadedobs); + void meas(bool loadedobs, const int& nthmeas); void start(); string getDataDesc() { return datadesc; }; int ocid; string obsid; + string obsidpostfix; private: - virtual void _meas(bool loadedobs)=0; + virtual void _meas(bool loadedobs, const int& nthmeas)=0; virtual void _finish()=0; virtual void _start()=0; protected: @@ -43,16 +43,15 @@ class o815 { public: sim(o815 *_O815, const int& _confmemSize); void nextConfig(); - bool toEquilibrate; char *confMem; - virtual void _newParas() {}; + virtual void _newParas()=0; + int nequi, nskip; private: - virtual void _reset()=0; virtual void _makeSweep()=0; protected: o815 *O815; ostream *log; - int nequi, nskip, confmemSize; + int confmemSize; }; struct { @@ -77,6 +76,7 @@ class o815 { }; o815(int argc, char **argv, const string& _programid, comoption specOps[]=NULL, void (*helpHeader)()=NULL); + void postParaInit(); ~o815(); paraq *paraQ; writeout *out; @@ -91,7 +91,6 @@ class o815 { private: vector comOptions; - MPI_Status mpiStatus; int numprocs, rank; static void listArg(int *target, int tlen, char *listarg); void parseArgs(int argc, char **argv, comoption specOps[]);