Skip to content

Commit

Permalink
PR #470: from firedrakeproject/fix_thermal_sw_fields_to_linearise
Browse files Browse the repository at this point in the history
Include b in the list of fields to linearise in the ShallowWaterEquations
  • Loading branch information
tommbendall authored Jan 3, 2024
2 parents cd62890 + 4cf8077 commit 255dc6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gusto/equations.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ def __init__(self, domain, parameters, fexpr=None, bexpr=None,
# Default linearisation is time derivatives, pressure gradient and
# transport term from depth equation. Don't include active tracers
linearisation_map = lambda t: \
t.get(prognostic) in ['u', 'D'] \
t.get(prognostic) in ['u', 'D', 'b'] \
and (any(t.has_label(time_derivative, pressure_gradient))
or (t.get(prognostic) in ['D', 'b'] and t.has_label(transport)))
super().__init__(field_names, domain, space_names,
Expand Down

0 comments on commit 255dc6f

Please sign in to comment.