peclet-dem 1.1.0
Performance-portable XPBD Discrete Element Method (Kokkos + ArborX)
Loading...
Searching...
No Matches
peclet::dem::PosUnits Struct Reference

The position units of a contact list as a CSR (§4.3): unit u owns the contacts list(start(u)) . More...

#include <contact_preprocessing.hpp>

Public Member Functions

bool on () const
 
int begin (int u) const
 
int end (int u) const
 
int contact (int k) const
 
int leader (int u) const
 

Public Attributes

Kokkos::View< const int *, CpMem > start
 
Kokkos::View< const int *, CpMem > list
 

Detailed Description

The position units of a contact list as a CSR (§4.3): unit u owns the contacts list(start(u)) .

. list(start(u + 1) - 1), sorted ascending by contact index, so list(start(u)) is its leader (smallest contact index). Units are numbered by ascending leader. Empty views = the identity (every contact its own unit), which the colourings and the sweep treat exactly as the per-contact code they replace.

Definition at line 697 of file contact_preprocessing.hpp.

Member Function Documentation

◆ on()

bool peclet::dem::PosUnits::on ( ) const
inline

Definition at line 700 of file contact_preprocessing.hpp.

References start.

Referenced by begin(), contact(), end(), and leader().

◆ begin()

int peclet::dem::PosUnits::begin ( int  u) const
inline

◆ end()

int peclet::dem::PosUnits::end ( int  u) const
inline

◆ contact()

int peclet::dem::PosUnits::contact ( int  k) const
inline

◆ leader()

int peclet::dem::PosUnits::leader ( int  u) const
inline

Member Data Documentation

◆ start

Kokkos::View<const int*, CpMem> peclet::dem::PosUnits::start

Definition at line 698 of file contact_preprocessing.hpp.

Referenced by begin(), end(), leader(), and on().

◆ list

Kokkos::View<const int*, CpMem> peclet::dem::PosUnits::list

Definition at line 699 of file contact_preprocessing.hpp.

Referenced by contact(), and leader().


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