Skip to content

Commit

Permalink
use correct beta_u in shallow water linear solvers
Browse files Browse the repository at this point in the history
  • Loading branch information
jshipton committed Aug 19, 2024
1 parent b434a1f commit 3e715ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gusto/solvers/linear_solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def _setup_solver(self):

if 'coriolis' in equation.prescribed_fields._field_names:
f = equation.prescribed_fields('coriolis')
eqn += beta_u_ * f * inner(w, equation.domain.perp(u)) * dx
eqn += beta_u * f * inner(w, equation.domain.perp(u)) * dx

aeqn = lhs(eqn)
Leqn = rhs(eqn)
Expand Down Expand Up @@ -881,7 +881,7 @@ def _setup_solver(self):

if 'coriolis' in equation.prescribed_fields._field_names:
f = equation.prescribed_fields('coriolis')
eqn += beta_u_ * f * inner(w, equation.domain.perp(u)) * dx
eqn += beta_u * f * inner(w, equation.domain.perp(u)) * dx

aeqn = lhs(eqn)
Leqn = rhs(eqn)
Expand Down

0 comments on commit 3e715ad

Please sign in to comment.