Skip to content

Commit d8913e5

Browse files
author
Keith Roberts
committed
better threshold
1 parent e45081a commit d8913e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spyro/solvers/leapfrog_adjoint_level_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def Leapfrog_adjoint_level_set(
186186
# analytical background gradient
187187
# Z, _ = SpatialCoordinate(mesh)
188188
# c_background = Function(V).interpolate(Min(1.5 + 4.0 * abs(Z), 4.1))
189-
indicator = Function(V).interpolate(c > 3.9) # 1 inside shape, 0 outside
189+
indicator = Function(V).interpolate(c > 4.3) # 1 inside shape, 0 outside
190190

191191
gradc = Function(VF, name="grad_c").interpolate(
192192
indicator * grad(c_salt) + (1 - indicator) * grad(c_background)

0 commit comments

Comments
 (0)