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

Go to the source code of this file.

Namespaces

 utility
 unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 0.
 

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)
 

Detailed Description

Author
Andrew Leaver-Fay (aleav.nosp@m.erfa.nosp@m.y@gma.nosp@m.il.c.nosp@m.om)

Definition in file mpi_util.hh.