Cabana 0.8.0-dev
Loading...
Searching...
No Matches
Cabana::CommunicationDataSlice< SliceType > Struct Template Reference

Store slice send/receive buffers. More...

#include <Cabana_CommunicationPlanBase.hpp>

Public Types

using particle_data_type = SliceType
 Particle data type.
using memory_space = typename particle_data_type::memory_space
 Kokkos memory space.
using data_type = typename particle_data_type::value_type
 Communication data type.
using buffer_type
 Communication buffer type.

Public Member Functions

 CommunicationDataSlice (particle_data_type particles)
void reallocateSend (const std::size_t num_send)
 Resize the send buffer.
void reallocateReceive (const std::size_t num_recv)
 Resize the receive buffer.
void setSliceComponents ()
 Get the total number of components in the slice.

Public Attributes

buffer_type _send_buffer
 Send buffer.
buffer_type _recv_buffer
 Receive buffer.
particle_data_type _particles
 Particle slice.
std::size_t _num_comp
 Slice components.

Detailed Description

template<class SliceType>
struct Cabana::CommunicationDataSlice< SliceType >

Store slice send/receive buffers.

Member Typedef Documentation

◆ buffer_type

template<class SliceType>
using Cabana::CommunicationDataSlice< SliceType >::buffer_type
Initial value:
typename Kokkos::View<data_type**, Kokkos::LayoutRight, memory_space>

Communication buffer type.

Constructor & Destructor Documentation

◆ CommunicationDataSlice()

template<class SliceType>
Cabana::CommunicationDataSlice< SliceType >::CommunicationDataSlice ( particle_data_type particles)
inline

Constructor

Parameters
particlesThe particle data (either AoSoA or slice).

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