core 1.8.1
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::halo::GridHaloTopology< Dim >::FlatTopology Struct Reference

#include <grid_halo_topology.hpp>

Public Member Functions

FlatTopology stacked (int k, Index stride) const
 The same pattern for k fields at once: copy j of every list is offset by j * stride (the fields lie at offsets 0, stride, ..., (k-1) * stride of ONE view) and each partner's group holds its k copies back to back, so one message per partner carries all k fields.

Public Attributes

MPI_Comm comm = MPI_COMM_NULL
std::vector< int > sendRanks
std::vector< int > recvRanks
std::vector< int > sendCounts
std::vector< int > recvCounts
std::vector< Index > sendIdx
std::vector< Index > recvIdx
std::vector< Index > selfSrc
std::vector< Index > selfDst

Detailed Description

template<int Dim>
struct peclet::core::halo::GridHaloTopology< Dim >::FlatTopology

Definition at line 314 of file grid_halo_topology.hpp.

Member Function Documentation

◆ stacked()

template<int Dim>
FlatTopology peclet::core::halo::GridHaloTopology< Dim >::FlatTopology::stacked ( int k,
Index stride ) const
inline

The same pattern for k fields at once: copy j of every list is offset by j * stride (the fields lie at offsets 0, stride, ..., (k-1) * stride of ONE view) and each partner's group holds its k copies back to back, so one message per partner carries all k fields.

Both ends stack with the same k in the same order, which keeps the pairing; stride is local.

Definition at line 325 of file grid_halo_topology.hpp.

References comm, recvCounts, recvIdx, recvRanks, selfDst, selfSrc, sendCounts, sendIdx, and sendRanks.

Member Data Documentation

◆ comm

template<int Dim>
MPI_Comm peclet::core::halo::GridHaloTopology< Dim >::FlatTopology::comm = MPI_COMM_NULL

◆ sendRanks

template<int Dim>
std::vector<int> peclet::core::halo::GridHaloTopology< Dim >::FlatTopology::sendRanks

◆ recvRanks

template<int Dim>
std::vector<int> peclet::core::halo::GridHaloTopology< Dim >::FlatTopology::recvRanks

◆ sendCounts

template<int Dim>
std::vector<int> peclet::core::halo::GridHaloTopology< Dim >::FlatTopology::sendCounts

◆ recvCounts

template<int Dim>
std::vector<int> peclet::core::halo::GridHaloTopology< Dim >::FlatTopology::recvCounts

◆ sendIdx

template<int Dim>
std::vector<Index> peclet::core::halo::GridHaloTopology< Dim >::FlatTopology::sendIdx

◆ recvIdx

template<int Dim>
std::vector<Index> peclet::core::halo::GridHaloTopology< Dim >::FlatTopology::recvIdx

◆ selfSrc

template<int Dim>
std::vector<Index> peclet::core::halo::GridHaloTopology< Dim >::FlatTopology::selfSrc

◆ selfDst

template<int Dim>
std::vector<Index> peclet::core::halo::GridHaloTopology< Dim >::FlatTopology::selfDst

The documentation for this struct was generated from the following file: