Adapter to use a UniformPackInfo in a NonUniformBufferedScheme.
No communication between coarse <-> fine blocks happens.
|
shared_ptr< walberla::communication::UniformPackInfo > | uniformPackInfo_ |
|
| UniformToNonUniformPackInfoAdapter (const shared_ptr< walberla::communication::UniformPackInfo > &uniformPackInfo) |
|
virtual | ~UniformToNonUniformPackInfoAdapter () |
|
virtual bool | constantDataExchange () const |
| 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...
|
|
virtual bool | threadsafeReceiving () const |
| Must return false if calling unpackData and/or communicateLocal is not thread-safe. More...
|
|
virtual void | unpackDataEqualLevel (Block *receiver, stencil::Direction dir, mpi::RecvBuffer &buffer) |
| If NOT thread-safe, threadsafeReceiving must return false! More...
|
|
virtual void | communicateLocalEqualLevel (const Block *sender, Block *receiver, stencil::Direction dir) |
| If NOT thread-safe, threadsafeReceiving must return false! More...
|
|
virtual void | unpackDataCoarseToFine (Block *, const BlockID &, stencil::Direction, mpi::RecvBuffer &) |
|
virtual void | communicateLocalCoarseToFine (const Block *, Block *, stencil::Direction) |
|
virtual void | unpackDataFineToCoarse (Block *, const BlockID &, stencil::Direction, mpi::RecvBuffer &) |
|
virtual void | communicateLocalFineToCoarse (const Block *, Block *, stencil::Direction) |
|
virtual void | packDataEqualLevelImpl (const Block *sender, stencil::Direction dir, mpi::SendBuffer &buffer) const |
| Must be thread-safe! More...
|
|
virtual void | packDataCoarseToFineImpl (const Block *, const BlockID &, stencil::Direction, mpi::SendBuffer &) const |
|
virtual void | packDataFineToCoarseImpl (const Block *, const BlockID &, stencil::Direction, mpi::SendBuffer &) const |
|
virtual bool walberla::blockforest::communication::UniformToNonUniformPackInfoAdapter::constantDataExchange |
( |
| ) |
const |
|
inlinevirtual |
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.
virtual bool walberla::blockforest::communication::UniformToNonUniformPackInfoAdapter::threadsafeReceiving |
( |
| ) |
const |
|
inlinevirtual |
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.