ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
cart_comm.hpp File Reference
#include <utils/Vector.hpp>
#include <boost/mpi/communicator.hpp>
#include <boost/mpi/exception.hpp>
#include <mpi.h>
#include <cstddef>
#include <utility>
+ Include dependency graph for cart_comm.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Utils::Mpi::CartInfo< dim >
 Information about a cartesian communicator. More...
 

Namespaces

namespace  Utils
 
namespace  Utils::Mpi
 

Functions

template<std::size_t dim>
Vector< int, dim > Utils::Mpi::dims_create (int nodes)
 Wrapper around MPI_Dims_create.
 
template<std::size_t dim>
boost::mpi::communicator Utils::Mpi::cart_create (boost::mpi::communicator const &comm, Vector< int, dim > const &dims, bool reorder=true, Vector< int, dim > const &periodicity=Vector< int, dim >::broadcast(1))
 Wrapper around MPI_Cart_create.
 
template<std::size_t dims>
Vector3i Utils::Mpi::cart_coords (boost::mpi::communicator const &comm, int rank)
 Wrapper around MPI_Cart_coords.
 
template<std::size_t dims>
int Utils::Mpi::cart_rank (boost::mpi::communicator const &comm, const Vector< int, dims > &pos)
 Wrapper around MPI_Cart_rank.
 
std::pair< int, int > Utils::Mpi::cart_shift (boost::mpi::communicator const &comm, int direction, int displacement)
 Wrapper around MPI_Cart_shift.
 
template<std::size_t dim>
Utils::Vector< int, 2 *dim > Utils::Mpi::cart_neighbors (const boost::mpi::communicator &comm)
 Calculates the numbers of the nearest neighbors for a node.
 
template<std::size_t dim>
CartInfo< dim > Utils::Mpi::cart_get (const boost::mpi::communicator &comm)
 Wrapper around MPI_Cart_get.