Skip to content

Commit

Permalink
Add comment about scaling constants
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Klöckner <[email protected]>
  • Loading branch information
isuruf and inducer authored Dec 20, 2022
1 parent 8f59aba commit 681b73d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytential/symbolic/pde/system_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ def get_deriv_relation_kernel(kernel: ExpressionKernel,
if coeff == 0:
continue
if mis[i] != (-1, -1, -1):
# account for scaling constants in kernels
coeff *= _get_sympy_kernel_expression(kernel.global_scaling_const,
kernel_arguments)
coeff /= _get_sympy_kernel_expression(base_kernel.global_scaling_const,
Expand Down

0 comments on commit 681b73d

Please sign in to comment.