walberla::mesa_pd::mpi::ReduceContactHistory Class Reference

Detailed Description

Reduces all contact history from ghost particles to the master particle.

Attention
This kernel only reduces the contact history. You have to manually broadcast it to ghost particles if needed. This can be done by either using BroadcastProperty or SyncNextNeighbors.
Usage:
The contact history aggregated by a call to this kernel is available in oldContactHistory. Use this data to write the current contact history to newContactHistory. The next call to this kernel will delete all contact data which is not stored in newContactHistory!
Precondition
  • up to date contact information has to be stored in newContactHistory
  • only contact information of local contacts should be stored
  • data in oldContactHistory will be overwritten
Postcondition
  • oldContactHistory for the master particle contains the reduced data
  • oldContactHistory for ghost particles is empty
  • newContactHistory is empty for master as well as ghost particles

#include <ReduceContactHistory.h>

Public Member Functions

void operator() (data::ParticleStorage &ps) const
 

Private Attributes

ReduceProperty RP_
 
int numProcesses_ = walberla::mpi::MPIManager::instance()->numProcesses()
 

Member Function Documentation

◆ operator()()

void walberla::mesa_pd::mpi::ReduceContactHistory::operator() ( data::ParticleStorage ps) const

Member Data Documentation

◆ numProcesses_

int walberla::mesa_pd::mpi::ReduceContactHistory::numProcesses_ = walberla::mpi::MPIManager::instance()->numProcesses()
private

◆ RP_

ReduceProperty walberla::mesa_pd::mpi::ReduceContactHistory::RP_
private

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