Skip to content

Commit a239984

Browse files
committed
Add the boundary term, seems to go
1 parent aeb2bcd commit a239984

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

notebooks/frontal-ablation.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"from IPython.display import HTML\n",
1414
"from tqdm.notebook import trange, tqdm\n",
1515
"import firedrake\n",
16-
"from firedrake import Constant, max_value, inner, grad, jump, dx, dS\n",
16+
"from firedrake import Constant, max_value, inner, grad, jump, dx, ds, dS\n",
1717
"import irksome\n",
1818
"from irksome import Dt\n",
1919
"from icepack2 import model"
@@ -119,7 +119,11 @@
119119
"\n",
120120
"ν = firedrake.FacetNormal(mesh)\n",
121121
"F_c = max_value(0, inner(f_c, ν))\n",
122-
"F += -inner(f_c, grad(ϕ)) * dx + jump(F_c) * jump(ϕ) * dS"
122+
"F += (\n",
123+
" -inner(f_c, grad(ϕ)) * dx\n",
124+
" + jump(F_c) * jump(ϕ) * dS\n",
125+
" + F_c * ϕ * ds\n",
126+
")"
123127
]
124128
},
125129
{

0 commit comments

Comments
 (0)