Skip to content

Commit

Permalink
remove variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jshipton committed Mar 22, 2024
1 parent a7d9d3f commit bcd4529
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gusto/linear_solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,10 +443,6 @@ class BoussinesqSolver(TimesteppingSolver):
def _setup_solver(self):
equation = self.equations # just cutting down line length a bit

# flag to indicate whether we're solving the compressible
# form of the equations
compressible = equation.compressible

dt = self.dt
beta_ = dt*self.alpha
Vu = equation.domain.spaces("HDiv")
Expand Down Expand Up @@ -482,7 +478,7 @@ def V(u):
- beta*inner(w, k)*b*dx
)

if compressible:
if equation.compressible:
cs = equation.parameters.cs
eqn += phi * (p - p_in) * dx + beta * phi * cs**2 * div(u) * dx
else:
Expand Down

0 comments on commit bcd4529

Please sign in to comment.