# tree_d_3d.kernels.cart_targets_host.cart_targets_host_pyccel

*module*

The Pyccel version (CPU) of the ``cart_targets_host`` kernel of the FMM at targets.

``cart_targets_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_targets_host/cart_targets_host_pyccel.py#L1-L1)

## tree_d_3d.kernels.cart_targets_host.cart_targets_host_pyccel.cart_targets_host

*function*

```python
def cart_targets_host(tpos: float[:, :], texclude: int64[:], t_count: int, t_center: float[:, :], t_start: int64[:], t_end: int64[:], t_child: int64[:], local: float[:, :], mono_parent: int64[:], mono_dir: int64[:], ex_pow: int64[:], ey_pow: int64[:], grad: int64[:, :], row_start: int64[:], partners: int64[:], spos: float[:, :], scharge: float[:], sindex: int64[:], s_start: int64[:], s_end: int64[:], softening: float, phi: float[:], field: float[:, :]) -> None
```

Point-charge potential and field at the targets, in target-tree order.

A target leaf ``n`` evaluates its Cartesian local expansion and sums the source
leaves ``partners[row_start[n]:row_start[n + 1]]`` exactly with the softened
kernel, skipping source ``texclude[i]`` (an index of ``sindex``). A target that
meets an unsoftened coincident charge gets ``phi = 1e300``.

[View source](https://github.com/max-models/tree-d-3d/blob/devel/src/tree_d_3d/kernels/cart_targets_host/cart_targets_host_pyccel.py#L16-L98)
