#include <HandlingPackInfo.h>
◆ HandlingPackInfo()
template<typename Handling_T >
◆ ~HandlingPackInfo()
template<typename Handling_T >
◆ communicateLocal()
template<typename Handling_T >
Function to copy data from one local block to another local block.
Both blocks are allocated on the current process. If NOT thread-safe, threadsafeReceiving must return false!
- Parameters
-
sender | id of block where the data should be copied from |
receiver | id of block where the data should be copied to |
dir | the direction of the communication ( from sender to receiver ) |
Implements walberla::communication::UniformPackInfo.
◆ constantDataExchange()
template<typename Handling_T >
Should return true if the amount of data that is packed for a given block in direction "dir" is guaranteed to remain constant over time.
False otherwise. If you are not sure what to return, return false! Returning false is always save. Falsely return true will lead to errors! However, if the data can be guaranteed to remain constant over time, returning true enables performance optimizations during the communication.
Implements walberla::communication::UniformPackInfo.
◆ packDataImpl()
template<typename Handling_T >
Packs data from a block into a send buffer.
Must be thread-safe!
- Parameters
-
sender | the block whose data should be packed into a buffer |
dir | pack data for neighbor in this direction |
buffer | buffer for writing the data into |
Implements walberla::communication::UniformPackInfo.
◆ threadsafeReceiving()
template<typename Handling_T >
Must return false if calling unpackData and/or communicateLocal is not thread-safe.
True otherwise. If you are not sure what to return, return false! Returning false is always save. Falsely return true will most likely lead to errors! However, if both unpackData AND communicateLocal are thread-safe, returning true can lead to performance improvements.
Implements walberla::communication::UniformPackInfo.
◆ unpackData()
template<typename Handling_T >
Unpacks received Data.
If NOT thread-safe, threadsafeReceiving must return false!
- Parameters
-
receiver | the block where the unpacked data should be stored into |
dir | receive data from neighbor in this direction |
buffer | |
Implements walberla::communication::UniformPackInfo.
◆ assumeIdenticalFlagMapping_
template<typename Handling_T >
◆ bdId_
template<typename Handling_T >
◆ numberOfLayers_
template<typename Handling_T >
The documentation for this class was generated from the following file:
- /builds/administration/walberla-website/walberla/src/boundary/communication/HandlingPackInfo.h