r7061: initial property settings
[ctsim.git] / include / mpiworld.h
index 74042b3fea6706d23fd9692591b0b7a4ea0a8d68..4d66c5fefaa8a8ae735a394b63eae52226516eea 100644 (file)
@@ -7,9 +7,9 @@
 **   Date Started:  June 6, 2000
 **
 **  This is part of the CTSim program
-**  Copyright (C) 1983-2000 Kevin Rosenberg
+**  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $id$
+**  $Id$
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
 
 #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;
 };
 
-