Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions sumpy/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -622,15 +623,15 @@ 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
# k(0, lam r) using [3] and use expression for k(0, lam r) from [4]
# 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")

Expand Down
2 changes: 1 addition & 1 deletion sumpy/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Loading