Skip to content

Commit

Permalink
be careful with buoyancy name
Browse files Browse the repository at this point in the history
  • Loading branch information
jshipton committed Nov 14, 2024
1 parent cc3adef commit 3f843ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gusto/equations/shallow_water_equations.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,8 @@ def __init__(self, domain, parameters, equivalent_buoyancy=False,
# Coriolis and transport term from depth equation
linearisation_map = lambda t: \
(any(t.has_label(time_derivative, pressure_gradient, coriolis))
or (t.get(prognostic) in ['D', 'b'] and t.has_label(transport)))
or (t.get(prognostic) in ['D', self.b_name]
and t.has_label(transport)))

super().__init__(domain, parameters,
equivalent_buoyancy=equivalent_buoyancy,
Expand Down

0 comments on commit 3f843ce

Please sign in to comment.