Detailed Description

Kernel which updates the currentBlock property of all local properties.

All particles are checked against the blocks in the BlockForest and the property is set accordingly.

Attention
This kernel must only be run on local particles. Ghost particles do not have a corresponding block!
Postcondition
currentBlock property of all local particles is up-to-date.

#include <AssocToBlock.h>

Public Member Functions

 AssocToBlock (const std::shared_ptr< BlockForest > &bf)
 
template<typename Accessor >
void operator() (const size_t i, Accessor &ac) const
 

Private Attributes

std::shared_ptr< BlockForestbf_ = nullptr
 

Constructor & Destructor Documentation

◆ AssocToBlock()

walberla::mesa_pd::kernel::AssocToBlock::AssocToBlock ( const std::shared_ptr< BlockForest > &  bf)
inlineexplicit

Member Function Documentation

◆ operator()()

template<typename Accessor >
void walberla::mesa_pd::kernel::AssocToBlock::operator() ( const size_t  i,
Accessor &  ac 
) const
inline

Member Data Documentation

◆ bf_

std::shared_ptr<BlockForest> walberla::mesa_pd::kernel::AssocToBlock::bf_ = nullptr
private

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