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>
◆ operator()()
◆ numProcesses_
int walberla::mesa_pd::mpi::ReduceContactHistory::numProcesses_ = walberla::mpi::MPIManager::instance()->numProcesses() |
|
private |
◆ RP_
The documentation for this class was generated from the following file: