Skip to content

Commit 316943d

Browse files
committed
No need to pass velocity to momentum balance
1 parent 50cf00b commit 316943d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/icepack2/model/variational.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,18 @@ def calving_terminus(**kwargs):
5959

6060
def momentum_balance(**kwargs):
6161
field_names = (
62-
"velocity",
6362
"membrane_stress",
6463
"basal_stress",
6564
"thickness",
6665
"surface",
6766
"test_function",
6867
)
69-
u, M, τ, h, s, v = map(kwargs.get, field_names)
68+
M, τ, h, s, v = map(kwargs.get, field_names)
7069

7170
ε = sym(grad(v))
7271
cell_balance = (-h * inner(M, ε) + inner(τ - ρ_I * g * h * grad(s), v)) * dx
7372

74-
mesh = ufl.domain.extract_unique_domain(u)
73+
mesh = ufl.domain.extract_unique_domain(v)
7574
ν = FacetNormal(mesh)
7675
facet_balance = ρ_I * g * avg(h) * inner(jump(s, ν), avg(v)) * dS
7776

0 commit comments

Comments
 (0)