#include <HandlingPackInfo.h>
◆ HandlingPackInfo()
template<typename Handling_T >
◆ ~HandlingPackInfo()
template<typename Handling_T >
◆ communicateLocal()
template<typename Handling_T >
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 safe. Falsely returning 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 >
Pack data from a block into a send buffer.
Must be thread-safe!
Implementations must reserve extra space and advance the send buffer pointer according to the alignment of the ghost layer data type! The buffer is char-aligned.
- 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 >
◆ unpackData()
template<typename Handling_T >
Unpack received Data.
If NOT thread-safe, threadsafeReceiving must return false!
Implementations must reserve extra space and advance the send buffer pointer according to the alignment of the ghost layer data type! The buffer is char-aligned.
- Parameters
-
receiver | the block where the unpacked data should be stored into |
dir | receive data from neighbor in this direction |
buffer | buffer for reading the data from |
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