ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag > Class Template Reference

#include <custom_verlet_list.hpp>

Inheritance diagram for CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >:
Collaboration diagram for CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >:

Public Member Functions

 CustomVerletList ()=default
 CustomVerletList (std::size_t const begin, std::size_t const end, std::size_t const max_neigh)
void initializeData (std::size_t const num_particles, std::size_t const max_neigh)
void reallocData (std::size_t const num_particles, std::size_t const max_neigh)
KOKKOS_INLINE_FUNCTION void addNeighborAtomicLB (int pid, int nid)
KOKKOS_INLINE_FUNCTION void addNeighbor (int pid, int nid)
KOKKOS_INLINE_FUNCTION void addNeighborLB (int pid, int nid)
KOKKOS_INLINE_FUNCTION void sortNeighbors ()
KOKKOS_INLINE_FUNCTION auto get_variance_max_counts (auto &ostream)
KOKKOS_INLINE_FUNCTION auto get_max_counts ()
KOKKOS_INLINE_FUNCTION bool hasOverflow () const

Public Attributes

Kokkos::View< int *, MemorySpace > counts
Kokkos::View< int **, Kokkos::LayoutRight, MemorySpace > neighbors
bool overflow = false

Detailed Description

template<class MemorySpace, class AlgorithmTag, class LayoutTag, class BuildTag = Cabana::TeamVectorOpTag>
class CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >

Definition at line 42 of file custom_verlet_list.hpp.

Constructor & Destructor Documentation

◆ CustomVerletList() [1/2]

template<class MemorySpace, class AlgorithmTag, class LayoutTag, class BuildTag = Cabana::TeamVectorOpTag>
CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >::CustomVerletList ( )
default

◆ CustomVerletList() [2/2]

template<class MemorySpace, class AlgorithmTag, class LayoutTag, class BuildTag = Cabana::TeamVectorOpTag>
CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >::CustomVerletList ( std::size_t const begin,
std::size_t const end,
std::size_t const max_neigh )
inline

Definition at line 46 of file custom_verlet_list.hpp.

Member Function Documentation

◆ addNeighbor()

template<class MemorySpace, class AlgorithmTag, class LayoutTag, class BuildTag = Cabana::TeamVectorOpTag>
KOKKOS_INLINE_FUNCTION void CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >::addNeighbor ( int pid,
int nid )
inline

Definition at line 99 of file custom_verlet_list.hpp.

Referenced by update_cabana_state().

◆ addNeighborAtomicLB()

template<class MemorySpace, class AlgorithmTag, class LayoutTag, class BuildTag = Cabana::TeamVectorOpTag>
KOKKOS_INLINE_FUNCTION void CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >::addNeighborAtomicLB ( int pid,
int nid )
inline

Definition at line 81 of file custom_verlet_list.hpp.

◆ addNeighborLB()

template<class MemorySpace, class AlgorithmTag, class LayoutTag, class BuildTag = Cabana::TeamVectorOpTag>
KOKKOS_INLINE_FUNCTION void CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >::addNeighborLB ( int pid,
int nid )
inline

Definition at line 113 of file custom_verlet_list.hpp.

Referenced by update_cabana_state().

◆ get_max_counts()

template<class MemorySpace, class AlgorithmTag, class LayoutTag, class BuildTag = Cabana::TeamVectorOpTag>
KOKKOS_INLINE_FUNCTION auto CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >::get_max_counts ( )
inline

Definition at line 168 of file custom_verlet_list.hpp.

◆ get_variance_max_counts()

template<class MemorySpace, class AlgorithmTag, class LayoutTag, class BuildTag = Cabana::TeamVectorOpTag>
KOKKOS_INLINE_FUNCTION auto CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >::get_variance_max_counts ( auto & ostream)
inline

Definition at line 146 of file custom_verlet_list.hpp.

◆ hasOverflow()

template<class MemorySpace, class AlgorithmTag, class LayoutTag, class BuildTag = Cabana::TeamVectorOpTag>
KOKKOS_INLINE_FUNCTION bool CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >::hasOverflow ( ) const
inline

Definition at line 184 of file custom_verlet_list.hpp.

Referenced by update_cabana_state().

◆ initializeData()

template<class MemorySpace, class AlgorithmTag, class LayoutTag, class BuildTag = Cabana::TeamVectorOpTag>
void CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >::initializeData ( std::size_t const num_particles,
std::size_t const max_neigh )
inline

◆ reallocData()

template<class MemorySpace, class AlgorithmTag, class LayoutTag, class BuildTag = Cabana::TeamVectorOpTag>
void CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >::reallocData ( std::size_t const num_particles,
std::size_t const max_neigh )
inline

Definition at line 72 of file custom_verlet_list.hpp.

◆ sortNeighbors()

template<class MemorySpace, class AlgorithmTag, class LayoutTag, class BuildTag = Cabana::TeamVectorOpTag>
KOKKOS_INLINE_FUNCTION void CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >::sortNeighbors ( )
inline

Definition at line 132 of file custom_verlet_list.hpp.

Member Data Documentation

◆ counts

◆ neighbors

◆ overflow

template<class MemorySpace, class AlgorithmTag, class LayoutTag, class BuildTag = Cabana::TeamVectorOpTag>
bool CustomVerletList< MemorySpace, AlgorithmTag, LayoutTag, BuildTag >::overflow = false

Definition at line 59 of file custom_verlet_list.hpp.


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