r422: *** empty log message ***
[ctsim.git] / include / mpiworld.h
index 74042b3fea6706d23fd9692591b0b7a4ea0a8d68..5f2568f6ca43fb5eaf3eeb1de5d75f602b84ca49 100644 (file)
 
 #include <mpi++.h>
 #include <vector.h>
-
+#include <string>
 
 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;
 };
 
-