Detailed Description

Kernel which updates all ghost particles.

#include <SyncGhostOwners.h>

Public Member Functions

void operator() (data::ParticleStorage &ps, const domain::IDomain &domain, const real_t dx=real_t(0), const bool syncNonCommunicatingBodies=false) const
 
int64_t getBytesSent () const
 
int64_t getBytesReceived () const
 
int64_t getNumberOfSends () const
 
int64_t getNumberOfReceives () const
 

Private Member Functions

void updateAndMigrate (data::ParticleStorage &ps, const domain::IDomain &domain, const bool syncNonCommunicatingBodies) const
 
void checkAndResolveOverlap (data::ParticleStorage &ps, const domain::IDomain &domain, const real_t dx, const bool syncNonCommunicatingBodies) const
 

Private Attributes

std::vector< uint_tneighborRanks_
 
int numProcesses_ = walberla::mpi::MPIManager::instance()->numProcesses()
 cache for neighbor ranks -> will be updated in operator() More...
 
int rank_ = walberla::mpi::MPIManager::instance()->rank()
 
int64_t bytesSent_ = 0
 
int64_t bytesReceived_ = 0
 
int64_t numberOfSends_ = 0
 
int64_t numberOfReceives_ = 0
 

Member Function Documentation

◆ checkAndResolveOverlap()

void walberla::mesa_pd::mpi::SyncGhostOwners::checkAndResolveOverlap ( data::ParticleStorage ps,
const domain::IDomain domain,
const real_t  dx,
const bool  syncNonCommunicatingBodies 
) const
private

◆ getBytesReceived()

int64_t walberla::mesa_pd::mpi::SyncGhostOwners::getBytesReceived ( ) const
inline

◆ getBytesSent()

int64_t walberla::mesa_pd::mpi::SyncGhostOwners::getBytesSent ( ) const
inline

◆ getNumberOfReceives()

int64_t walberla::mesa_pd::mpi::SyncGhostOwners::getNumberOfReceives ( ) const
inline

◆ getNumberOfSends()

int64_t walberla::mesa_pd::mpi::SyncGhostOwners::getNumberOfSends ( ) const
inline

◆ operator()()

void walberla::mesa_pd::mpi::SyncGhostOwners::operator() ( data::ParticleStorage ps,
const domain::IDomain domain,
const real_t  dx = real_t(0),
const bool  syncNonCommunicatingBodies = false 
) const

◆ updateAndMigrate()

void walberla::mesa_pd::mpi::SyncGhostOwners::updateAndMigrate ( data::ParticleStorage ps,
const domain::IDomain domain,
const bool  syncNonCommunicatingBodies 
) const
private

Member Data Documentation

◆ bytesReceived_

int64_t walberla::mesa_pd::mpi::SyncGhostOwners::bytesReceived_ = 0
mutableprivate

◆ bytesSent_

int64_t walberla::mesa_pd::mpi::SyncGhostOwners::bytesSent_ = 0
mutableprivate

◆ neighborRanks_

std::vector<uint_t> walberla::mesa_pd::mpi::SyncGhostOwners::neighborRanks_
mutableprivate

◆ numberOfReceives_

int64_t walberla::mesa_pd::mpi::SyncGhostOwners::numberOfReceives_ = 0
mutableprivate

◆ numberOfSends_

int64_t walberla::mesa_pd::mpi::SyncGhostOwners::numberOfSends_ = 0
mutableprivate

◆ numProcesses_

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

cache for neighbor ranks -> will be updated in operator()

◆ rank_

int walberla::mesa_pd::mpi::SyncGhostOwners::rank_ = walberla::mpi::MPIManager::instance()->rank()
private

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