Skip to content
Projects

tree_d_3d.kernels.quadtree_moments_upward.quadtree_moments_upward_numpy

The version of the quadtree_moments_upward kernel for machines without Pyccel.

quadtree_moments_upward_pyccel.py vectorized over the cells of a level: the leaves sum all their particles at once, the parents shift all their children at once.

Functions

NameDescription
quadtree_moments_upwardSigned moments of every node about its centre, from the deepest level up.

quadtree_moments_upwardfunction#

def quadtree_moments_upward(pos, charge, perm, levels, node_center, node_start, node_end, node_child, node_q, node_qabs, node_p, node_s)

Signed moments of every node about its centre, from the deepest level up.

See quadtree_moments_upward_pyccel.