Rosetta Utilities  2014.35
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 1.
 

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)
 

Detailed Description

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

Macro Definition Documentation

#define MPI_ONLY (   x)