|
peclet.voro 1.0.0
Device-native moving-particle Voronoi dynamics
|
#include <topology_store.hpp>
Public Types | |
| using | MemSpace = peclet::core::MemSpace |
Public Member Functions | |
| void | alloc (int n) |
| void | allocPoke4 () |
| template<class Cell > | |
| KOKKOS_INLINE_FUNCTION void | save (int i, const Cell &c) const |
Persist cell c at slot i (call after the cell is finalised — clipped + complete). | |
| template<class Cell , class Real > | |
| KOKKOS_INLINE_FUNCTION void | load (int i, Cell &c, Real L0, Real L1, Real L2) const |
Public Attributes | |
| int | N = 0 |
| Kokkos::View< int *, MemSpace > | np |
| Kokkos::View< int *, MemSpace > | nt |
| Kokkos::View< int *, MemSpace > | pnbr |
| Kokkos::View< unsigned *, MemSpace > | tri |
| Kokkos::View< unsigned char *, MemSpace > | poke4 |
Resident compact topology for N cells of ConvexCell<Real, MAXP, MAXT>. Captured by value into kernels.
| using peclet::voro::TopologyStore< MAXP, MAXT >::MemSpace = peclet::core::MemSpace |
|
inline |
|
inline |
Allocate the per-triangle edge-adjacency store (the Lawson local certificate; opt-in so callers that don't use it pay no memory). N*MAXT*3 int ≈ MAXT·12 bytes/cell.
|
inline |
Reload the stored topology of slot i into a fresh cell, ready for reevalGeometry(): seeds the six box planes (initBoxPlanes), restores np/nt/overflow, the neighbour ids of planes [6,np), and the triangles. The neighbour PLANE equations and all vertices are (re)computed by the following reevalGeometry() call.
|
inline |
Persist cell c at slot i (call after the cell is finalised — clipped + complete).
| int peclet::voro::TopologyStore< MAXP, MAXT >::N = 0 |
| Kokkos::View<int*, MemSpace> peclet::voro::TopologyStore< MAXP, MAXT >::np |
| Kokkos::View<int*, MemSpace> peclet::voro::TopologyStore< MAXP, MAXT >::nt |
| Kokkos::View<int*, MemSpace> peclet::voro::TopologyStore< MAXP, MAXT >::pnbr |
| Kokkos::View<unsigned char*, MemSpace> peclet::voro::TopologyStore< MAXP, MAXT >::poke4 |
| Kokkos::View<unsigned*, MemSpace> peclet::voro::TopologyStore< MAXP, MAXT >::tri |