Skip to content

Commit

Permalink
add gravity label
Browse files Browse the repository at this point in the history
  • Loading branch information
tommbendall committed Nov 15, 2023
1 parent 6a1678b commit 2214495
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gusto/equations.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,8 @@ def __init__(self, domain, parameters, Omega=None, sponge=None,
# -------------------------------------------------------------------- #
# Gravitational Term
# -------------------------------------------------------------------- #
gravity_form = subject(prognostic(Term(g*inner(domain.k, w)*dx), 'u'), self.X)
gravity_form = name_label(subject(prognostic(Term(g*inner(domain.k, w)*dx),
'u'), self.X), "gravity")

residual = (mass_form + adv_form + pressure_gradient_form + gravity_form)

Expand Down

0 comments on commit 2214495

Please sign in to comment.