diff --git a/sumpy/kernel.py b/sumpy/kernel.py index 40e82dc72af28830e548e42d1d8e1d6d9e77c9c1..12255a93f6d686c003f8f99f16f2f43db22ba037 100644 --- a/sumpy/kernel.py +++ b/sumpy/kernel.py @@ -269,12 +269,12 @@ class Kernel(object): return expr def get_global_scaling_const(self): - """Return a global scaling constant of the kernel. - Typically, this ensures that the kernel is scaled so that - :math:`\mathcal L(G)(x)=C\delta(x)` with a constant of 1, where - :math:`\mathcal L` is the PDE operator associated with the kernel. - Not to be confused with *rscale*, which keeps expansion - coefficients benignly scaled. + r"""Return a global scaling constant of the kernel. + Typically, this ensures that the kernel is scaled so that + :math:`\mathcal L(G)(x)=C\delta(x)` with a constant of 1, where + :math:`\mathcal L` is the PDE operator associated with the kernel. + Not to be confused with *rscale*, which keeps expansion + coefficients benignly scaled. """ raise NotImplementedError @@ -302,7 +302,7 @@ class ExpressionKernel(Kernel): def __init__(self, dim, expression, global_scaling_const, is_complex_valued): - """ + r""" :arg expression: A :mod:`pymbolic` expression depending on variables *d_1* through *d_N* where *N* equals *dim*. (These variables match what is returned from diff --git a/sumpy/p2e.py b/sumpy/p2e.py index e9037a3f55396d57103a06970de3a1418adf00f3..daa7d93dc5b393d358424031500a4915e2c2dd9f 100644 --- a/sumpy/p2e.py +++ b/sumpy/p2e.py @@ -27,6 +27,7 @@ from six.moves import range import numpy as np import loopy as lp +from loopy.version import MOST_RECENT_LANGUAGE_VERSION from sumpy.tools import KernelCacheWrapper @@ -159,7 +160,8 @@ class P2EFromSingleBox(P2EBase): assumptions="nsrc_boxes>=1", silenced_warnings="write_race(write_expn*)", default_offset=lp.auto, - fixed_parameters=dict(dim=self.dim)) + fixed_parameters=dict(dim=self.dim), + lang_version=MOST_RECENT_LANGUAGE_VERSION) loopy_knl = self.expansion.prepare_loopy_kernel(loopy_knl) loopy_knl = lp.tag_inames(loopy_knl, "idim*:unr") @@ -265,7 +267,8 @@ class P2EFromCSR(P2EBase): assumptions="ntgt_boxes>=1", silenced_warnings="write_race(write_expn*)", default_offset=lp.auto, - fixed_parameters=dict(dim=self.dim)) + fixed_parameters=dict(dim=self.dim), + lang_version=MOST_RECENT_LANGUAGE_VERSION) loopy_knl = self.expansion.prepare_loopy_kernel(loopy_knl) loopy_knl = lp.tag_inames(loopy_knl, "idim*:unr")