ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#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. | |
Definition at line 62 of file core/communication.hpp.
Communicator::Communicator | ( | ) |
Definition at line 92 of file communication.cpp.
Utils::Vector3i Communicator::calc_node_index | ( | ) | const |
Calculate the node index in the Cartesian topology.
Definition at line 116 of file communication.cpp.
References comm, and this_node.
Referenced by System::System::update_local_geo().
void Communicator::full_initialization | ( | ) |
Definition at line 103 of file communication.cpp.
References init_comm_cart(), node_grid, size, and this_node.
Referenced by Communication::init().
void Communicator::init_comm_cart | ( | ) |
Definition at line 95 of file communication.cpp.
References Utils::Mpi::cart_create(), comm, node_grid, and this_node.
Referenced by full_initialization(), and set_node_grid().
void Communicator::set_node_grid | ( | Utils::Vector3i const & | value | ) |
Set new Cartesian topology.
Definition at line 111 of file communication.cpp.
References init_comm_cart(), and node_grid.
Referenced by ScriptInterface::CellSystem::CellSystem::CellSystem().
boost::mpi::communicator& Communicator::comm |
Definition at line 63 of file core/communication.hpp.
Referenced by calc_node_index(), and init_comm_cart().
Utils::Vector3i Communicator::node_grid |
Definition at line 64 of file core/communication.hpp.
Referenced by ScriptInterface::CellSystem::CellSystem::CellSystem(), full_initialization(), FFTBackendLegacy< FloatType >::init(), init_comm_cart(), CoulombP3M::sanity_checks_node_grid(), DipolarP3M::sanity_checks_node_grid(), set_node_grid(), and System::System::update_local_geo().
int Communicator::size |
The MPI world size.
Definition at line 68 of file core/communication.hpp.
Referenced by cuda_gather_gpus(), and full_initialization().
int& Communicator::this_node |
The MPI rank.
Definition at line 66 of file core/communication.hpp.
Referenced by calc_node_index(), full_initialization(), and init_comm_cart().