peclet.voro 1.0.0
Device-native moving-particle Voronoi dynamics
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
peclet::voro::WorklistCache< Real > Struct Template Reference

#include <tess_grid.hpp>

Public Member Functions

bool matches (int dx, int dy, int dz, int s, Real cx, Real cy, Real cz) const
 

Public Attributes

Kokkos::View< int *, peclet::core::MemSpace > wlOff
 
Kokkos::View< Real *, peclet::core::MemSpace > wlRmin
 
int nOff = 0
 
int wlS = 0
 
int dimx = -1
 
int dimy = -1
 
int dimz = -1
 
int sw = -1
 
Real cszx = 0
 
Real cszy = 0
 
Real cszz = 0
 
bool valid = false
 

Detailed Description

template<class Real>
struct peclet::voro::WorklistCache< Real >

Cache for the step-invariant presorted worklist table (E3). The table depends only on the grid dimensions, the search width sw, and the cell sizes csz — none of which change as the seeds move — so a stepper that rebuilds the tessellation every step can reuse it instead of redoing the host std::sort + two H2D copies each time. Held by value in the simulation (Views are reference-counted handles); passed by pointer into buildTessGrid/buildTessellation. Holding the Views in the owning object (not a function-local static) keeps them freed before Kokkos::finalize.

Member Function Documentation

◆ matches()

template<class Real >
bool peclet::voro::WorklistCache< Real >::matches ( int  dx,
int  dy,
int  dz,
int  s,
Real  cx,
Real  cy,
Real  cz 
) const
inline

Member Data Documentation

◆ cszx

template<class Real >
Real peclet::voro::WorklistCache< Real >::cszx = 0

◆ cszy

template<class Real >
Real peclet::voro::WorklistCache< Real >::cszy = 0

◆ cszz

template<class Real >
Real peclet::voro::WorklistCache< Real >::cszz = 0

◆ dimx

template<class Real >
int peclet::voro::WorklistCache< Real >::dimx = -1

◆ dimy

template<class Real >
int peclet::voro::WorklistCache< Real >::dimy = -1

◆ dimz

template<class Real >
int peclet::voro::WorklistCache< Real >::dimz = -1

◆ nOff

template<class Real >
int peclet::voro::WorklistCache< Real >::nOff = 0

◆ sw

template<class Real >
int peclet::voro::WorklistCache< Real >::sw = -1

◆ valid

template<class Real >
bool peclet::voro::WorklistCache< Real >::valid = false

◆ wlOff

template<class Real >
Kokkos::View<int*, peclet::core::MemSpace> peclet::voro::WorklistCache< Real >::wlOff

◆ wlRmin

template<class Real >
Kokkos::View<Real*, peclet::core::MemSpace> peclet::voro::WorklistCache< Real >::wlRmin

◆ wlS

template<class Real >
int peclet::voro::WorklistCache< Real >::wlS = 0

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