Skip to content

Commit

Permalink
Merge pull request #478 from firedrakeproject/fix_moist_thermal_example
Browse files Browse the repository at this point in the history
Fix moist thermal example
  • Loading branch information
jshipton authored Feb 29, 2024
2 parents 605064a + d18f0ec commit 6ac3f4b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/shallow_water/moist_thermal_williamson5.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
mu2 = 0.98
q0 = 135 # chosen to give an initial max vapour of approx 0.02
beta2 = 10
qprecip = 10e-4
gamma_r = 10e-3
qprecip = 1e-4
gamma_r = 1e-3
# topography parameters
R0 = pi/9.
R0sq = R0**2
Expand Down Expand Up @@ -104,8 +104,10 @@ def gamma_v(x_in):
InstantRain(eqns, qprecip, vapour_name="cloud_water", rain_name="rain",
gamma_r=gamma_r)

transport_methods = [DGUpwind(eqns, field_name) for field_name in eqns.field_names]

# Timestepper
stepper = Timestepper(eqns, RK4(domain), io)
stepper = Timestepper(eqns, RK4(domain), io, spatial_methods=transport_methods)

# ----------------------------------------------------------------- #
# Initial conditions
Expand Down

0 comments on commit 6ac3f4b

Please sign in to comment.