ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
GatherParticleTraits< T > Struct Template Referenceabstract

Gather particle properties (or any derived quantities) on MPI rank 0. More...

Public Member Functions

virtual T kernel (Particle const &) const =0
virtual ~GatherParticleTraits ()=default
void fetch (CellStructure const &cell_structure, int pid)
auto join ()

Detailed Description

template<typename T>
struct GatherParticleTraits< T >

Gather particle properties (or any derived quantities) on MPI rank 0.

The data is collected into an unordered map.

Definition at line 51 of file statistics_chain.cpp.

Constructor & Destructor Documentation

◆ ~GatherParticleTraits()

template<typename T>
virtual GatherParticleTraits< T >::~GatherParticleTraits ( )
virtualdefault

Member Function Documentation

◆ fetch()

template<typename T>
void GatherParticleTraits< T >::fetch ( CellStructure const & cell_structure,
int pid )
inline

Definition at line 60 of file statistics_chain.cpp.

References CellStructure::get_local_particle(), and kernel().

Referenced by calc_re(), calc_rg(), and calc_rh().

◆ join()

template<typename T>
auto GatherParticleTraits< T >::join ( )
inline

Definition at line 68 of file statistics_chain.cpp.

References comm_cart, and Utils::Mpi::gather_buffer().

Referenced by calc_re(), calc_rg(), and calc_rh().

◆ kernel()

template<typename T>
virtual T GatherParticleTraits< T >::kernel ( Particle const & ) const
pure virtual

Implemented in GatherCom, GatherMass, and GatherPos.

Referenced by fetch().


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