Skip to content

num::spatial::debug::verify_kernel_normalization

Defined in header <spatial/debug.hpp>

template <class K, class Scalar = float>
requires smoothing_kernel<K, Scalar>
void verify_kernel_normalization(
    Scalar h, Scalar tol = Scalar(2e-2),
    std::source_location loc = std::source_location::current());

Check that a kernel integrates to one: \(\int_0^{2h} W(r, h)\, 2\pi r\, dr = 1\).