# tree_d_3d.kernels.fmm_evaluate_host.fmm_evaluate_host_pyccel

*module*

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`.

[View source](https://github.com/max-models/tree-d-3d/blob/devel/src/tree_d_3d/kernels/fmm_evaluate_host/fmm_evaluate_host_pyccel.py#L1-L1)

## tree_d_3d.kernels.fmm_evaluate_host.fmm_evaluate_host_pyccel.fmm_evaluate_host

*function*

```python
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[:]) -> None
```

Far 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.

[View source](https://github.com/max-models/tree-d-3d/blob/devel/src/tree_d_3d/kernels/fmm_evaluate_host/fmm_evaluate_host_pyccel.py#L14-L100)
