Cabana 0.8.0-dev
 
Loading...
Searching...
No Matches
Cabana::VerletListData< MemorySpace, VerletLayout2D > Struct Template Reference

Store the VerletList 2D neighbor data. More...

#include <Cabana_VerletList.hpp>

Public Types

using memory_space = MemorySpace
 Kokkos memory space.
 

Public Member Functions

KOKKOS_INLINE_FUNCTION void addNeighbor (const int pid, const int nid) const
 Add a neighbor to the list.
 
KOKKOS_INLINE_FUNCTION void setNeighbor (const int pid, const int nid, const int new_id) const
 Modify a neighbor in the list.
 

Public Attributes

Kokkos::View< int *, memory_spacecounts
 Number of neighbors per particle.
 
Kokkos::View< int **, memory_spaceneighbors
 Neighbor list.
 
std::size_t max_n
 

Detailed Description

template<class MemorySpace>
struct Cabana::VerletListData< MemorySpace, VerletLayout2D >

Store the VerletList 2D neighbor data.

Member Data Documentation

◆ max_n

template<class MemorySpace>
std::size_t Cabana::VerletListData< MemorySpace, VerletLayout2D >::max_n

Actual maximum neighbors per particle (potentially less than allocated space).


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