Overture  Version 25
broadCast.h
Go to the documentation of this file.
1 #ifndef BROADCAST_H
2 #define BROADCAST_H
3 
4 #include "OvertureTypes.h"
5 #include "aString.H"
6 
7 #ifndef USE_PPP
8  #define MPI_COMM_WORLD 0
9 #endif
10 
11 // broadcast a value to all processors in a communicator
12 void broadCast( int & value, const int & fromProcessor=0, MPI_Comm comm=MPI_COMM_WORLD );
13 void broadCast( float & value, const int & fromProcessor=0, MPI_Comm comm=MPI_COMM_WORLD );
14 void broadCast( double & value, const int & fromProcessor=0, MPI_Comm comm=MPI_COMM_WORLD );
15 void broadCast( bool & value, const int & fromProcessor=0, MPI_Comm comm=MPI_COMM_WORLD );
16 
17 // broadcast a serial array to all processors in a communicator
18 void broadCast( intSerialArray & buff, const int & fromProcessor=0, MPI_Comm comm=MPI_COMM_WORLD );
19 void broadCast( floatSerialArray & buff, const int & fromProcessor=0, MPI_Comm comm=MPI_COMM_WORLD );
20 void broadCast( doubleSerialArray & buff, const int & fromProcessor=0, MPI_Comm comm=MPI_COMM_WORLD );
21 
22 // broadcast a aString to all processors in a communicator
23 void broadCast( aString & string, const int & fromProcessor=0, MPI_Comm comm=MPI_COMM_WORLD );
24 
25 #endif