X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/03a0d20d92b54e75ac862b9e41ede061b1918498..c1fa6a1beca0ee805fd717b65ab4e959c5864950:/paraq.h diff --git a/paraq.h b/paraq.h index 6f6a1a0..6aba45b 100644 --- a/paraq.h +++ b/paraq.h @@ -14,19 +14,24 @@ class paraq { int nextParas(); double& operator[] (string paraid); void addRange(const string& paraid, double range[3]) { addRange(paraid, range[0], range[1], range[2]); } - void setDefault(const string& paraid, double value) { defaultPara[paraid] = value; } + void addRange(const string& paraid, char *range); + void setDefault(const string& paraid, double value) { defaultPara[paraid] = value; uniqueAllParaIdsAdd(paraid); } int getTotalJobs(); + string rangeString(); + vector allParaIds; private: int nprocs, rank; int thisjob; map defaultPara; map< string, vector > paraMap; + map< string, vector > rangeMap; vector< map > jobList; void initJobList(); bool inParas(vector& paraVec, double& tofind); double masterdefault; bool jobListInitialized; + void uniqueAllParaIdsAdd(const string& paraid); }; #endif