tree_d_3d.kernels.fmm_evaluate_host.fmm_evaluate_host_pyccel
The Pyccel version (CPU) of the fmm_evaluate_host kernel of the FMM.
fmm_evaluate_host_numpy.py next to this file is the version for machines without
Pyccel, with the same arguments; the folder’s __init__.py declares the kernel (see
tree_d_3d.kernels). The flat quadtree is described in tree_d_3d.flat_tree.
Functions
| Name | Description |
|---|---|
fmm_evaluate_host | Far field from leaf local expansions plus exact mutual near field, in tree order. |
fmm_evaluate_hostfunction#
def fmm_evaluate_host(spos: float[:, :], scharge: float[:], node_count: int, node_center: float[:, :], node_start: int64[:], node_end: int64[:], node_child: int64[:], local_re: float[:, :], local_im: float[:, :], pairs: int64[:, :], count: int, softening: float, with_potential: int, phi: float[:], field: float[:, :], status: int64[:]) -> NoneFar field from leaf local expansions plus exact mutual near field, in tree order.
spos and scharge are the particles in tree order (pos[:, perm]), and
phi and field are filled in that order (zero on entry): the arguments and
conventions of fmm_evaluate otherwise. status[0] becomes 1 + the tree slot
of a particle that met an unsoftened coincident charge.