ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Communicator Struct Reference

#include <communication.hpp>

Public Member Functions

 Communicator ()
void init_comm_cart ()
void full_initialization ()
Utils::Vector3i calc_node_index () const
 Calculate the node index in the Cartesian topology.
void set_node_grid (Utils::Vector3i const &value)
 Set new Cartesian topology.

Public Attributes

boost::mpi::communicator & comm
Utils::Vector3i node_grid
int & this_node
 The MPI rank.
int size
 The MPI world size.
bool locked_for_checkpointing

Detailed Description

Definition at line 82 of file core/communication.hpp.

Constructor & Destructor Documentation

◆ Communicator()

Communicator::Communicator ( )

Definition at line 150 of file communication.cpp.

References comm, comm_cart, locked_for_checkpointing, node_grid, size, and this_node.

Member Function Documentation

◆ calc_node_index()

Utils::Vector3i Communicator::calc_node_index ( ) const

Calculate the node index in the Cartesian topology.

Definition at line 179 of file communication.cpp.

References Utils::Mpi::cart_coords(), comm, and this_node.

◆ full_initialization()

void Communicator::full_initialization ( )

Definition at line 165 of file communication.cpp.

References Utils::Mpi::dims_create(), init_comm_cart(), node_grid, size, and this_node.

◆ init_comm_cart()

void Communicator::init_comm_cart ( )

◆ set_node_grid()

void Communicator::set_node_grid ( Utils::Vector3i const & value)

Set new Cartesian topology.

Definition at line 173 of file communication.cpp.

References init_comm_cart(), locked_for_checkpointing, and node_grid.

Member Data Documentation

◆ comm

boost::mpi::communicator& Communicator::comm

Definition at line 83 of file core/communication.hpp.

Referenced by calc_node_index(), Communicator(), and init_comm_cart().

◆ locked_for_checkpointing

bool Communicator::locked_for_checkpointing

Definition at line 89 of file core/communication.hpp.

Referenced by Communicator(), and set_node_grid().

◆ node_grid

Utils::Vector3i Communicator::node_grid

◆ size

int Communicator::size

The MPI world size.

Definition at line 88 of file core/communication.hpp.

Referenced by Communicator(), and full_initialization().

◆ this_node

int& Communicator::this_node

The MPI rank.

Definition at line 86 of file core/communication.hpp.

Referenced by calc_node_index(), Communicator(), full_initialization(), and init_comm_cart().


The documentation for this struct was generated from the following files: