Skip to content
Projects

patchwork.kernels.gather_blocks.gather_blocks_numpy

The NumPy version of the gather_blocks kernel, run when Pyccel is unavailable.

Same arguments and arithmetic as gather_blocks_pyccel.py, vectorized over the markers with mpifield’s NumPy spline_cell.

Functions

NameDescription
gather_blocksWrite the gathered values of the markers to result.

gather_blocksfunction#

def gather_blocks(rel: np.ndarray, count: np.ndarray, stride: np.ndarray, base: np.ndarray, degree: int, buffer: np.ndarray, result: np.ndarray) -> None

Write the gathered values of the markers to result.