X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=include%2Fmpiworld.h;h=a791f17380e18e97b395d3f7ab51258dcc2123de;hb=5a6caa64e880f613b82e516031028d02fd127257;hp=74042b3fea6706d23fd9692591b0b7a4ea0a8d68;hpb=2451ac413848718a1dd666ce6f6464e974680f47;p=ctsim.git diff --git a/include/mpiworld.h b/include/mpiworld.h index 74042b3..a791f17 100644 --- a/include/mpiworld.h +++ b/include/mpiworld.h @@ -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: mpiworld.h,v 1.5 2001/01/28 19:10:18 kevin Exp $ ** ** 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 @@ -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; }; -