Cabana 0.8.0-dev
 
Loading...
Searching...
No Matches
Cabana::CommunicationDataAoSoA< AoSoAType > Struct Template Reference

Store AoSoA send/receive buffers. More...

#include <Cabana_CommunicationPlan.hpp>

Public Types

using particle_data_type = AoSoAType
 Particle data type.
 
using memory_space = typename particle_data_type::memory_space
 Kokkos memory space.
 
using data_type = typename particle_data_type::tuple_type
 Communication data type.
 
using buffer_type = typename Kokkos::View<data_type*, memory_space>
 Communication buffer type.
 

Public Member Functions

 CommunicationDataAoSoA (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.
 

Public Attributes

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

Detailed Description

template<class AoSoAType>
struct Cabana::CommunicationDataAoSoA< AoSoAType >

Store AoSoA send/receive buffers.

Constructor & Destructor Documentation

◆ CommunicationDataAoSoA()

template<class AoSoAType>
Cabana::CommunicationDataAoSoA< AoSoAType >::CommunicationDataAoSoA ( 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: