Skip to content

Commit

Permalink
Merge pull request #460 from firedrakeproject/gravity_label
Browse files Browse the repository at this point in the history
Add a label to the gravity term
  • Loading branch information
jshipton authored Feb 26, 2024
2 parents 62d4ee8 + fa903c2 commit 57d5778
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 57d5778

Please sign in to comment.