core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
Loading...
Searching...
No Matches
csr.hpp File Reference

Go to the source code of this file.

Classes

struct  peclet::core::amr::CsrCountSink
 Sink passed to the emit functor during the COUNT pass: just tallies faces. More...
 
struct  peclet::core::amr::CsrFillSink
 Sink passed to the emit functor during the FILL pass: writes each face into the cell's own slice [start_i, start_{i+1}) at the running cursor k (no atomics — deterministic). More...
 
struct  peclet::core::amr::Csr
 An assembled face-CSR: row offsets (size n+1), neighbour index + coefficient per face (size nFaces). More...
 

Namespaces

namespace  peclet
 
namespace  peclet::core
 
namespace  peclet::core::amr
 

Functions

template<class CountFn >
View< Indexpeclet::core::amr::scanOffsets (Index n, const CountFn &countFn, Index &nTotal)
 CSR row offsets (size n+1) from a per-cell count functor, via one exclusive prefix scan, with the total written to nTotal.
 
template<class Emit >
Csr peclet::core::amr::buildFaceCsr (Index n, const Emit &emit)
 Build a face-CSR on device from a per-cell emit functor.