Rosetta
Namespaces | Macros | Functions
mpi_util.cc File Reference
#include <utility/mpi_util.hh>
#include <utility/SimulateMPI.hh>

Namespaces

 utility
 unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 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< int > utility::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)
 
platform::Size utility::receive_size_from_node (int source)
 Use MPI to receive a single unsigned (usually 64-bit) integer from a particular node. More...
 
void utility::send_size_to_node (int destination, platform::Size message)
 Use MPI to send a single unsigned (usually 64-bit) integer to a particular node. More...
 
utility::vector1< platform::Sizeutility::receive_sizes_from_node (int source)
 Use MPI to receive a vector of integers from a particular node. More...
 
void utility::send_sizes_to_node (int destination, utility::vector1< platform::Size > 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

◆ MPI_ONLY

#define MPI_ONLY (   x)