#include <PdfFieldPackInfo.h>
Public Types | |
using | PdfField_T = PdfField< LatticeModel_T > |
using | Stencil = typename LatticeModel_T::Stencil |
Public Member Functions | |
PdfFieldPackInfo (const BlockDataID &pdfFieldId, const ConstBlockDataID &boundaryHandlingId, const bool _optimizedEqualLevelCommunication=true, const bool _optimizedForLinearExplosion=true) | |
~PdfFieldPackInfo () override=default | |
bool | optimizedEqualLevelCommunication () const override |
void | optimizeEqualLevelCommunication (const bool value=true) override |
bool | optimizedForLinearExplosion () const override |
void | optimizeForLinearExplosion (const bool value=true) override |
bool | constantDataExchange () const override |
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. More... | |
bool | threadsafeReceiving () const override |
Must return false if calling unpackData and/or communicateLocal is not thread-safe. More... | |
void | unpackDataEqualLevel (Block *receiver, stencil::Direction dir, mpi::RecvBuffer &buffer) override |
If NOT thread-safe, threadsafeReceiving must return false! More... | |
void | communicateLocalEqualLevel (const Block *sender, Block *receiver, stencil::Direction dir) override |
If NOT thread-safe, threadsafeReceiving must return false! More... | |
void | unpackDataCoarseToFine (Block *fineReceiver, const BlockID &coarseSender, stencil::Direction dir, mpi::RecvBuffer &buffer) override |
void | communicateLocalCoarseToFine (const Block *coarseSender, Block *fineReceiver, stencil::Direction dir) override |
void | unpackDataFineToCoarse (Block *coarseReceiver, const BlockID &fineSender, stencil::Direction dir, mpi::RecvBuffer &buffer) override |
void | communicateLocalFineToCoarse (const Block *fineSender, Block *coarseReceiver, stencil::Direction dir) override |
![]() | |
NonUniformPackInfo ()=default | |
virtual | ~NonUniformPackInfo ()=default |
void | packDataEqualLevel (const Block *sender, stencil::Direction dir, mpi::SendBuffer &buffer) const |
Must be thread-safe! Calls packDataImpl. More... | |
void | packDataCoarseToFine (const Block *coarseSender, const BlockID &fineReceiver, stencil::Direction dir, mpi::SendBuffer &buffer) const |
void | packDataFineToCoarse (const Block *fineSender, const BlockID &coarseReceiver, stencil::Direction dir, mpi::SendBuffer &buffer) const |
void | clearBufferSizeCheckMap () |
Protected Member Functions | |
void | packDataEqualLevelImpl (const Block *sender, stencil::Direction dir, mpi::SendBuffer &buffer) const override |
Must be thread-safe! More... | |
void | packDataCoarseToFineImpl (const Block *coarseSender, const BlockID &fineReceiver, stencil::Direction dir, mpi::SendBuffer &buffer) const override |
void | packDataFineToCoarseImpl (const Block *fineSender, const BlockID &coarseReceiver, stencil::Direction dir, mpi::SendBuffer &buffer) const override |
bool | equalLevelFaceIntervalSplitable (const CellInterval &interval, stencil::Direction dir) const |
std::vector< CellInterval > | splitEqualLevelFaceInterval (const CellInterval &interval, stencil::Direction dir) const |
![]() |
Protected Attributes | |
BlockDataID | pdfFieldId_ |
ConstBlockDataID | boundaryHandlingId_ |
bool | optimizedEqualLevelCommunication_ |
bool | optimizedForLinearExplosion_ |
uint_t | equalLevelCells_ |
![]() | |
std::map< const Block *, std::map< stencil::Direction, std::map< uint_t, size_t > > > | bufferSize_ |
using walberla::lbm::refinement::PdfFieldPackInfo< LatticeModel_T, BoundaryHandling_T >::PdfField_T = PdfField<LatticeModel_T> |
using walberla::lbm::refinement::PdfFieldPackInfo< LatticeModel_T, BoundaryHandling_T >::Stencil = typename LatticeModel_T::Stencil |
|
inline |
|
overridedefault |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
overridevirtual |
|
overridevirtual |
If NOT thread-safe, threadsafeReceiving must return false!
Implements walberla::blockforest::communication::NonUniformPackInfo.
|
overridevirtual |
|
inlineoverridevirtual |
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::blockforest::communication::NonUniformPackInfo.
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlineprotected |
|
inlinestaticprotected |
|
staticprotected |
|
inlinestaticprotected |
|
staticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlineoverridevirtual |
Implements walberla::lbm::refinement::TimeStepPdfPackInfo.
|
inlineoverridevirtual |
Implements walberla::lbm::refinement::TimeStepPdfPackInfo.
|
inlineoverridevirtual |
Implements walberla::lbm::refinement::TimeStepPdfPackInfo.
|
inlineoverridevirtual |
Implements walberla::lbm::refinement::TimeStepPdfPackInfo.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Must be thread-safe!
Implements walberla::blockforest::communication::NonUniformPackInfo.
|
overrideprotectedvirtual |
|
inlineprotected |
|
inlineoverridevirtual |
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::blockforest::communication::NonUniformPackInfo.
|
overridevirtual |
|
overridevirtual |
If NOT thread-safe, threadsafeReceiving must return false!
Implements walberla::blockforest::communication::NonUniformPackInfo.
|
overridevirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |