ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
CellStructure::AoSoA_pack Struct Reference

#include <aosoa_pack.hpp>

+ Collaboration diagram for CellStructure::AoSoA_pack:

Public Types

using PositionViewType = Kokkos::View< double *[3], Kokkos::LayoutRight, Kokkos::HostSpace >
 
using VelocityViewType = Kokkos::View< double *[3], Kokkos::LayoutRight, Kokkos::HostSpace >
 
using DirectorViewType = Kokkos::View< double *[3], Kokkos::LayoutRight, Kokkos::HostSpace >
 
using ChargeViewType = Kokkos::View< double *, Kokkos::HostSpace >
 
using DipmViewType = Kokkos::View< double *, Kokkos::HostSpace >
 
using IdViewType = Kokkos::View< int *, Kokkos::HostSpace >
 
using TypeViewType = Kokkos::View< int *, Kokkos::HostSpace >
 
using IdToIndexViewType = Kokkos::View< int *, Kokkos::HostSpace >
 
using FlagsViewType = Kokkos::View< uint8_t *, Kokkos::HostSpace >
 

Public Member Functions

 AoSoA_pack ()=default
 
 AoSoA_pack (std::size_t num_particles)
 
void resize (std::size_t num_particles)
 
template<typename array_layout >
Utils::Vector3d get_vector_at (Kokkos::View< double *[3], array_layout, Kokkos::HostSpace > const &view, std::size_t i) const
 
template<typename array_layout >
void set_vector_at (Kokkos::View< double *[3], array_layout, Kokkos::HostSpace > &view, std::size_t i, Utils::Vector3d const &value)
 
void set_has_exclusion (std::size_t i, bool value)
 
bool has_exclusion (std::size_t i) const
 

Public Attributes

PositionViewType position
 
VelocityViewType velocity
 
DirectorViewType director
 
ChargeViewType charge
 
DipmViewType dipm
 
IdViewType id
 
TypeViewType type
 
IdToIndexViewType id_to_index
 
FlagsViewType flags
 

Detailed Description

Definition at line 32 of file aosoa_pack.hpp.

Member Typedef Documentation

◆ ChargeViewType

Definition at line 39 of file aosoa_pack.hpp.

◆ DipmViewType

Definition at line 40 of file aosoa_pack.hpp.

◆ DirectorViewType

using CellStructure::AoSoA_pack::DirectorViewType = Kokkos::View<double *[3], Kokkos::LayoutRight, Kokkos::HostSpace>

Definition at line 37 of file aosoa_pack.hpp.

◆ FlagsViewType

Definition at line 44 of file aosoa_pack.hpp.

◆ IdToIndexViewType

Definition at line 43 of file aosoa_pack.hpp.

◆ IdViewType

Definition at line 41 of file aosoa_pack.hpp.

◆ PositionViewType

using CellStructure::AoSoA_pack::PositionViewType = Kokkos::View<double *[3], Kokkos::LayoutRight, Kokkos::HostSpace>

Definition at line 33 of file aosoa_pack.hpp.

◆ TypeViewType

Definition at line 42 of file aosoa_pack.hpp.

◆ VelocityViewType

using CellStructure::AoSoA_pack::VelocityViewType = Kokkos::View<double *[3], Kokkos::LayoutRight, Kokkos::HostSpace>

Definition at line 35 of file aosoa_pack.hpp.

Constructor & Destructor Documentation

◆ AoSoA_pack() [1/2]

CellStructure::AoSoA_pack::AoSoA_pack ( )
default

◆ AoSoA_pack() [2/2]

CellStructure::AoSoA_pack::AoSoA_pack ( std::size_t  num_particles)
inline

Definition at line 58 of file aosoa_pack.hpp.

References resize(), and stream.

Member Function Documentation

◆ get_vector_at()

template<typename array_layout >
Utils::Vector3d CellStructure::AoSoA_pack::get_vector_at ( Kokkos::View< double *[3], array_layout, Kokkos::HostSpace > const view,
std::size_t  i 
) const
inline

Definition at line 101 of file aosoa_pack.hpp.

References stream.

Referenced by ForcesKernel::operator()().

◆ has_exclusion()

bool CellStructure::AoSoA_pack::has_exclusion ( std::size_t  i) const
inline

Definition at line 120 of file aosoa_pack.hpp.

References flags, and stream.

Referenced by ForcesKernel::operator()().

◆ resize()

void CellStructure::AoSoA_pack::resize ( std::size_t  num_particles)
inline

Definition at line 60 of file aosoa_pack.hpp.

References charge, dipm, director, flags, position, stream, type, and velocity.

Referenced by AoSoA_pack().

◆ set_has_exclusion()

void CellStructure::AoSoA_pack::set_has_exclusion ( std::size_t  i,
bool  value 
)
inline

Definition at line 116 of file aosoa_pack.hpp.

References flags, and stream.

Referenced by commit_particle().

◆ set_vector_at()

template<typename array_layout >
void CellStructure::AoSoA_pack::set_vector_at ( Kokkos::View< double *[3], array_layout, Kokkos::HostSpace > &  view,
std::size_t  i,
Utils::Vector3d const value 
)
inline

Definition at line 108 of file aosoa_pack.hpp.

References stream.

Referenced by commit_particle().

Member Data Documentation

◆ charge

ChargeViewType CellStructure::AoSoA_pack::charge

Definition at line 49 of file aosoa_pack.hpp.

Referenced by commit_particle(), ForcesKernel::operator()(), and resize().

◆ dipm

DipmViewType CellStructure::AoSoA_pack::dipm

Definition at line 50 of file aosoa_pack.hpp.

Referenced by commit_particle(), ForcesKernel::operator()(), and resize().

◆ director

DirectorViewType CellStructure::AoSoA_pack::director

Definition at line 48 of file aosoa_pack.hpp.

Referenced by commit_particle(), ForcesKernel::operator()(), and resize().

◆ flags

FlagsViewType CellStructure::AoSoA_pack::flags

Definition at line 54 of file aosoa_pack.hpp.

Referenced by commit_particle(), has_exclusion(), resize(), and set_has_exclusion().

◆ id

IdViewType CellStructure::AoSoA_pack::id

Definition at line 51 of file aosoa_pack.hpp.

Referenced by commit_particle(), and ForcesKernel::operator()().

◆ id_to_index

IdToIndexViewType CellStructure::AoSoA_pack::id_to_index

Definition at line 53 of file aosoa_pack.hpp.

◆ position

PositionViewType CellStructure::AoSoA_pack::position

Definition at line 46 of file aosoa_pack.hpp.

Referenced by commit_particle(), ForcesKernel::operator()(), and resize().

◆ type

TypeViewType CellStructure::AoSoA_pack::type

Definition at line 52 of file aosoa_pack.hpp.

Referenced by commit_particle(), ForcesKernel::operator()(), and resize().

◆ velocity

VelocityViewType CellStructure::AoSoA_pack::velocity

Definition at line 47 of file aosoa_pack.hpp.

Referenced by commit_particle(), ForcesKernel::operator()(), and resize().


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