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

Classes

class  MpiCallbacks
 The interface of the MPI callback mechanism. More...
 
class  RegisterCallback
 Helper class to add callbacks before main. More...
 

Typedefs

template<class... Args>
using CallbackHandle = MpiCallbacks::CallbackHandle< Args... >
 

Functions

MpiCallbacksmpiCallbacks ()
 Returns a reference to the global callback class instance.
 
std::shared_ptr< MpiCallbacksmpiCallbacksHandle ()
 
void init (std::shared_ptr< boost::mpi::environment > mpi_env)
 Init globals for communication.
 
void deinit ()
 

Variables

static std::shared_ptr< MpiCallbacksm_callbacks
 

Typedef Documentation

◆ CallbackHandle

template<class... Args>
using Communication::CallbackHandle = typedef MpiCallbacks::CallbackHandle<Args...>

Definition at line 484 of file MpiCallbacks.hpp.

Function Documentation

◆ deinit()

void Communication::deinit ( )

Definition at line 89 of file communication.cpp.

References m_callbacks.

Referenced by MpiContainerUnitTest::~MpiContainerUnitTest().

◆ init()

void Communication::init ( std::shared_ptr< boost::mpi::environment >  mpi_env)

Init globals for communication.

Parameters
mpi_envMPI environment that should be used

Definition at line 72 of file communication.cpp.

References comm_cart, communicator, cuda_on_program_start(), Communicator::full_initialization(), ErrorHandling::init_error_handling(), m_callbacks, and walberla::mpi_init().

Referenced by MpiContainerUnitTest::MpiContainerUnitTest().

◆ mpiCallbacks()

MpiCallbacks & Communication::mpiCallbacks ( )

Returns a reference to the global callback class instance.

Definition at line 54 of file communication.cpp.

References m_callbacks.

Referenced by get_particle_data(), mpi_call(), and mpi_call_all().

◆ mpiCallbacksHandle()

Variable Documentation

◆ m_callbacks

std::shared_ptr<MpiCallbacks> Communication::m_callbacks
static

Definition at line 51 of file communication.cpp.

Referenced by deinit(), init(), mpiCallbacks(), and mpiCallbacksHandle().