X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/1a5483766d4056eec087099f2e411aef51b63cf5..71e93c2cca7c6f967c3c77c3e26c037ad4f4f555:/paraq.h?ds=inline diff --git a/paraq.h b/paraq.h index 6aba45b..0167bcb 100644 --- a/paraq.h +++ b/paraq.h @@ -16,9 +16,13 @@ class paraq { 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; uniqueAllParaIdsAdd(paraid); } + + void linkParas(const string& paraid1, const string ¶id2) { linkedParas.push_back( make_pair(paraid1,paraid2) ); } int getTotalJobs(); string rangeString(); vector allParaIds; + string getParaNames(); + string getParaVals(); private: int nprocs, rank; @@ -26,6 +30,7 @@ class paraq { map defaultPara; map< string, vector > paraMap; map< string, vector > rangeMap; + vector< pair > linkedParas; vector< map > jobList; void initJobList(); bool inParas(vector& paraVec, double& tofind);