# tree_d_3d.kernels.cart_evaluate_host.cart_evaluate_host_pyccel

*module*

The Pyccel version (CPU) of the ``cart_evaluate_host`` kernel of the Coulomb FMM.

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

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

## tree_d_3d.kernels.cart_evaluate_host.cart_evaluate_host_pyccel.cart_evaluate_host

*function*

```python
def cart_evaluate_host(spos: float[:, :], scharge: float[:], node_count: int, node_center: float[:, :], node_start: int64[:], node_end: int64[:], node_child: int64[:], local: float[:, :], mono_parent: int64[:], mono_dir: int64[:], ex: int64[:], ey: int64[:], grad: int64[:, :], pairs: int64[:, :], count: int, softening: float, phi: float[:], field: float[:, :], status: int64[:]) -> None
```

Far field from the leaves' local expansions plus the exact mutual near field.

The particles are in tree order (``spos``, ``scharge``), and ``phi`` and ``field``
(zero on entry) are filled in that order. The near field is the softened Coulomb
kernel over the leaf pairs ``pairs[:count]`` (a leaf with itself once); every
particle is a target and self-interaction is excluded. ``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/cart_evaluate_host/cart_evaluate_host_pyccel.py#L16-L110)
