X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=include%2Fmpiworld.h;h=5f2568f6ca43fb5eaf3eeb1de5d75f602b84ca49;hb=516e7e87a069b938f325181d70c720c4c3fb8596;hp=74042b3fea6706d23fd9692591b0b7a4ea0a8d68;hpb=2451ac413848718a1dd666ce6f6464e974680f47;p=ctsim.git diff --git a/include/mpiworld.h b/include/mpiworld.h index 74042b3..5f2568f 100644 --- a/include/mpiworld.h +++ b/include/mpiworld.h @@ -27,12 +27,12 @@ #include #include - +#include class MPIWorld { public: - MPIWorld (int& argc, char**& argv); + MPIWorld (int& argc, char* const *& argv); void setTotalWorkUnits (int totalUnits); @@ -60,9 +60,11 @@ class MPIWorld int getMyLocalWorkUnits (void) const { return m_vLocalWorkUnits [m_myRank]; } - MPI::Intracomm getComm() + MPI::Intracomm& getComm() { return m_comm; } - + + void BcastString (string& str); + private: int m_myRank; int m_nProcessors; @@ -72,4 +74,3 @@ private: MPI::Intracomm m_comm; }; -