projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r274: Renamed if2img to ifexport
[ctsim.git]
/
include
/
mpiworld.h
diff --git
a/include/mpiworld.h
b/include/mpiworld.h
index 74042b3fea6706d23fd9692591b0b7a4ea0a8d68..5818ed3df3d4c6149bc475a1aa16413fa0495f57 100644
(file)
--- a/
include/mpiworld.h
+++ b/
include/mpiworld.h
@@
-27,7
+27,7
@@
#include <mpi++.h>
#include <vector.h>
#include <mpi++.h>
#include <vector.h>
-
+#include <string>
class MPIWorld
{
class MPIWorld
{
@@
-60,9
+60,11
@@
class MPIWorld
int getMyLocalWorkUnits (void) const
{ return m_vLocalWorkUnits [m_myRank]; }
int getMyLocalWorkUnits (void) const
{ return m_vLocalWorkUnits [m_myRank]; }
- MPI::Intracomm getComm()
+ MPI::Intracomm
&
getComm()
{ return m_comm; }
{ return m_comm; }
-
+
+ void BcastString (string& str);
+
private:
int m_myRank;
int m_nProcessors;
private:
int m_myRank;
int m_nProcessors;
@@
-72,4
+74,3
@@
private:
MPI::Intracomm m_comm;
};
MPI::Intracomm m_comm;
};
-