![]() |
Block-Structured AMR Software Framework
|
This class stores data dependencies for an inter-block communication. More...
#include <AMReX_NonLocalBC.H>
Public Member Functions | |
Constructors | |
| template<typename DTOS> requires (IsIndexMapping<DTOS>::value) | |
| MultiBlockCommMetaData (const FabArrayBase &dst, const Box &dstbox, const FabArrayBase &src, const IntVect &ngrow, DTOS const &dtos) | |
| Build global meta data by calling the define() member function. | |
| template<typename DTOS> requires (IsIndexMapping<DTOS>::value) | |
| MultiBlockCommMetaData (const BoxArray &dstba, const DistributionMapping &dstdm, const Box &dstbox, const BoxArray &srcba, const DistributionMapping &srcdm, const IntVect &ngrow, DTOS const &dtos) | |
| Build global meta data by calling the define() member function. | |
Manipulators | |
| template<typename DTOS> requires (IsIndexMapping<DTOS>::value) | |
| void | define (const BoxArray &dstba, const DistributionMapping &dstdm, const Box &dstbox, const BoxArray &srcba, const DistributionMapping &srcdm, const IntVect &ngrow, DTOS const &dtos) |
| Build global meta data that is being used to identify send and recv dependencies in communication routines. | |
Additional Inherited Members | |
| Public Attributes inherited from amrex::FabArrayBase::CommMetaData | |
| bool | m_threadsafe_loc = false |
| bool | m_threadsafe_rcv = false |
| std::unique_ptr< CopyComTagsContainer > | m_LocTags |
| std::unique_ptr< MapOfCopyComTagContainers > | m_SndTags |
| std::unique_ptr< MapOfCopyComTagContainers > | m_RcvTags |
This class stores data dependencies for an inter-block communication.
In communication between two blocks one might need to do an index transformation from one block to another.
| amrex::NonLocalBC::MultiBlockCommMetaData::MultiBlockCommMetaData | ( | const FabArrayBase & | dst, |
| const Box & | dstbox, | ||
| const FabArrayBase & | src, | ||
| const IntVect & | ngrow, | ||
| DTOS const & | dtos ) |
Build global meta data by calling the define() member function.
| amrex::NonLocalBC::MultiBlockCommMetaData::MultiBlockCommMetaData | ( | const BoxArray & | dstba, |
| const DistributionMapping & | dstdm, | ||
| const Box & | dstbox, | ||
| const BoxArray & | srcba, | ||
| const DistributionMapping & | srcdm, | ||
| const IntVect & | ngrow, | ||
| DTOS const & | dtos ) |
Build global meta data by calling the define() member function.
| void amrex::NonLocalBC::MultiBlockCommMetaData::define | ( | const BoxArray & | dstba, |
| const DistributionMapping & | dstdm, | ||
| const Box & | dstbox, | ||
| const BoxArray & | srcba, | ||
| const DistributionMapping & | srcdm, | ||
| const IntVect & | ngrow, | ||
| DTOS const & | dtos ) |
Build global meta data that is being used to identify send and recv dependencies in communication routines.
If DTOS satisfies IsMonotoneIndexMapping, each process examines only the boxes that overlap its own. Otherwise every process examines all destination boxes. It is wise to cache this object instead of rebuilding it for every copy.
| DTOS | This parameter needs to satisfy IsIndexMapping and HasInverseImage. |
| [in] | dstba | The destination box array. |
| [in] | dstdm | The destination distribution mapping. |
| [in] | dstbox | The box that will be filled and that lives in the destination space. |
| [in] | srcba | The source box array. |
| [in] | srcdm | The source distribution mapping. |
| [in] | ngrow | The number of ghost cells that shall be considered when filling data. |
| [in] | dtos | The dest to source index mapping that has an inverse image. |