Template Function kernel::discretization::utils::find_closest_element

Function Documentation

template<typename MeshTp>
const MeshTp::element_t *kernel::discretization::utils::find_closest_element(const MeshTp &mesh, const GeomPoint<MeshTp::dimension> &p, uint_t nsamples, real_t tol)

Find the element in the mesh with the smallest distance from the point.