Rosetta  3.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Macros | Functions
mpi_util.cc File Reference
#include <utility/mpi_util.hh>
#include <utility/SimulateMPI.hh>

Namespaces

 utility
 comment 0
 

Macros

#define MPI_ONLY(x)
 

Functions

int utility::mpi_rank ()
 
int utility::mpi_nprocs ()
 
int utility::receive_integer_from_anyone ()
 Use MPI to wait until some node sends an integer – usually its own mpi_rank so that it can send further messages. More...
 
std::string utility::receive_string_from_node (int source)
 Use MPI to receive a string from a particular node. More...
 
void utility::send_string_to_node (int destination, std::string const &message)
 
char utility::receive_char_from_node (int source)
 Use MPI to receive a single char from a particular node. More...
 
void utility::send_char_to_node (int destination, char message)
 
int utility::receive_integer_from_node (int source)
 Use MPI to receive a single integer from a particular node. More...
 
void utility::send_integer_to_node (int destination, int message)
 
utility::vector1< intutility::receive_integers_from_node (int source)
 Use MPI to receive a vector of integers from a particular node. More...
 
void utility::send_integers_to_node (int destination, utility::vector1< int > const &message)
 
double utility::receive_double_from_node (int source)
 Use MPI to receive a single double from a particular node. More...
 
void utility::send_double_to_node (int destination, double message)
 
utility::vector1< doubleutility::receive_doubles_from_node (int source)
 Use MPI to receive a vector of doubles from a particular node. More...
 
void utility::send_doubles_to_node (int destination, utility::vector1< double > const &message)
 

Macro Definition Documentation

#define MPI_ONLY (   x)