X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fmpiworld.h;h=5818ed3df3d4c6149bc475a1aa16413fa0495f57;hp=74042b3fea6706d23fd9692591b0b7a4ea0a8d68;hb=01ee1e0085970643368d65c38b09008927e24cd5;hpb=2451ac413848718a1dd666ce6f6464e974680f47 diff --git a/include/mpiworld.h b/include/mpiworld.h index 74042b3..5818ed3 100644 --- a/include/mpiworld.h +++ b/include/mpiworld.h @@ -27,7 +27,7 @@ #include #include - +#include class MPIWorld { @@ -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; }; -