Skip to content
Snippets Groups Projects
Commit 7ed95392 authored by Isuru Fernando's avatar Isuru Fernando
Browse files

Revert "Fix biharmonic kernel expressions"

This reverts commit 7cf3197b.
parent 0c903968
No related branches found
No related tags found
1 merge request!120Biharmonic kernel fixes
......@@ -447,14 +447,13 @@ class BiharmonicKernel(ExpressionKernel):
init_arg_names = ("dim",)
def __init__(self, dim=None):
# See https://arxiv.org/abs/1202.1811
r = pymbolic_real_norm_2(make_sym_vector("d", dim))
if dim == 2:
expr = r**2 * (var("log")(r) - 1)
scaling = -1/(8*var("pi"))
expr = r**2 * var("log")(r)
scaling = 1/(8*var("pi"))
elif dim == 3:
expr = r
scaling = 1/(8*var("pi"))
scaling = 1 # FIXME: Unknown
else:
raise RuntimeError("unsupported dimensionality")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment