Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Witt-D committed Dec 17, 2024
1 parent edb8f1c commit dfb860c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions case_studies/compressible_euler/solid_body_rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def solid_body_sphere(
p0 = Constant(100000)
T0 = 280. # in K


vel0 = stepper.fields("u")
rho0 = stepper.fields("rho")
theta0 = stepper.fields("theta")
Expand All @@ -142,8 +141,8 @@ def solid_body_sphere(
# expressions for variables from paper
s = r * cos(lat)

Q_expr = (s / a)**2 * (u0**2 + 2 * omega * a * u0) / (2 * Rd * T0)
Q_expr = (s / a)**2 * (u0**2 + 2 * omega * a * u0) / (2 * Rd * T0)

# solving fields as per the staniforth paper
q_expr = Q_expr + ((g * a**2) / (Rd * T0)) * (1/r - 1/a)
p_expr = p0 * exp(q_expr)
Expand Down Expand Up @@ -202,7 +201,6 @@ def solid_body_sphere(
# ---------------------------------------------------------------------------- #
# MAIN
# ---------------------------------------------------------------------------- #

if __name__ == "__main__":

Check failure on line 204 in case_studies/compressible_euler/solid_body_rotation.py

View workflow job for this annotation

GitHub Actions / Run linter

E305

case_studies/compressible_euler/solid_body_rotation.py:204:1: E305 expected 2 blank lines after class or function definition, found 1

parser = ArgumentParser(
Expand Down

0 comments on commit dfb860c

Please sign in to comment.