Skip to content

Commit

Permalink
made precipation tests compatible with coupled transport
Browse files Browse the repository at this point in the history
  • Loading branch information
ta440 committed Aug 8, 2023
1 parent a3c5e7b commit f70f4d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion integration-tests/equations/test_forced_advection.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def run_forced_advection(tmpdir):
physics_parametrisations = [InstantRain(meqn, msat, rain_name="rain",
parameters=None)]


# I/O
output = OutputParameters(dirname=str(tmpdir), dumpfreq=1)
diagnostic_fields = [CourantNumber()]
Expand Down
12 changes: 8 additions & 4 deletions integration-tests/physics/test_precipitation.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ def setup_fallout(dirname):
domain = Domain(mesh, dt, "CG", 1)
x = SpatialCoordinate(mesh)

# Define the tracers
rho = ActiveTracer(name='rho', space='DG1_equispaced', variable_type=TracerVariableType.density)
rain = Rain(space='DG1_equispaced')

Vu = domain.spaces("HDiv")

# Equation
Vrho = domain.spaces("DG1_equispaced")
active_tracers = [Rain(space='DG1_equispaced')]
eqn = CoupledTransportEquation(domain, Vrho, "rho", active_tracers=active_tracers)
transport_method = DGUpwind(eqn, "rho")
eqn = CoupledTransportEquation(domain, active_tracers=[rho, rain], Vu=Vu)
transport_method = [DGUpwind(eqn, "rho"), DGUpwind(eqn, "rain")]

# I/O
output = OutputParameters(dirname=dirname+"/fallout", dumpfreq=10, dumplist=['rain'])
Expand Down

0 comments on commit f70f4d4

Please sign in to comment.