diff --git a/sumpy/kernel.py b/sumpy/kernel.py index c4544ef5..a9d83f9f 100644 --- a/sumpy/kernel.py +++ b/sumpy/kernel.py @@ -149,6 +149,7 @@ class Kernel: .. automethod:: get_global_scaling_const .. automethod:: get_args .. automethod:: get_source_args + .. automethod:: get_pde_as_diff_op """ if TYPE_CHECKING: @@ -622,7 +623,7 @@ def __init__(self, dim, yukawa_lambda_name="lam"): expr = var("hankel_1")(0, var("I")*lam*r) scaling_for_K0 = var("pi")/2*var("I") # noqa: N806 - scaling = -1/(2*var("pi")) * scaling_for_K0 + scaling = 1/(2*var("pi")) * scaling_for_K0 elif dim == 3: # NOTE: to get the expression, we do the following and simplify # 1. express K(1/2, lam r) as a modified spherical Bessel function @@ -630,7 +631,7 @@ def __init__(self, dim, yukawa_lambda_name="lam"): # 2. or use (AS 10.2.17) directly expr = var("exp")(-lam*r) / r - scaling = -1/(4 * var("pi")**2) + scaling = 1/(4 * var("pi")) else: raise RuntimeError("unsupported dimensionality") diff --git a/sumpy/version.py b/sumpy/version.py index 81d1e3c7..8c4f151f 100644 --- a/sumpy/version.py +++ b/sumpy/version.py @@ -41,4 +41,4 @@ def _parse_version(version: str) -> tuple[tuple[int, ...], str]: VERSION, VERSION_STATUS = _parse_version(VERSION_TEXT) _GIT_REVISION = find_module_git_revision(__file__, n_levels_up=1) -KERNEL_VERSION = (*VERSION, _GIT_REVISION, 0) +KERNEL_VERSION = (*VERSION, _GIT_REVISION, 1)