X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/b57bffe30e8f531f21f0d50e4dc5f58275d8522e..ad54f29de351976a096b4991fe426ffc30332df2:/paraq.h?ds=inline diff --git a/paraq.h b/paraq.h index ef4376b..6aba45b 100644 --- a/paraq.h +++ b/paraq.h @@ -15,9 +15,10 @@ class paraq { double& operator[] (string paraid); void addRange(const string& paraid, double range[3]) { addRange(paraid, range[0], range[1], range[2]); } void addRange(const string& paraid, char *range); - void setDefault(const string& paraid, double value) { defaultPara[paraid] = value; } + void setDefault(const string& paraid, double value) { defaultPara[paraid] = value; uniqueAllParaIdsAdd(paraid); } int getTotalJobs(); string rangeString(); + vector allParaIds; private: int nprocs, rank; @@ -30,6 +31,7 @@ class paraq { bool inParas(vector& paraVec, double& tofind); double masterdefault; bool jobListInitialized; + void uniqueAllParaIdsAdd(const string& paraid); }; #endif