@@ -50,7 +50,7 @@ zelem = 36
50
50
helem = 4
51
51
npoly = 4
52
52
t_end = FT (60 * 60 * 24 * 12 ) # 12 days of simulation time
53
- dt = FT (60 * 60 ) # 1 hour timestep
53
+ _dt = FT (60 * 60 ) # 1 hour timestep
54
54
ode_algorithm = ExplicitAlgorithm (SSP33ShuOsher ())
55
55
56
56
# Operators used in increment!
@@ -139,7 +139,7 @@ function horizontal_tendency!(Yₜ, Y, cache, t)
139
139
end
140
140
141
141
function vertical_tendency! (Yₜ, Y, cache, t)
142
- (; q_n, face_u, face_uₕ, face_uᵥ, fct_op) = cache
142
+ (; q_n, face_u, face_uₕ, face_uᵥ, fct_op, dt ) = cache
143
143
face_coord = Fields. coordinate_field (face_u)
144
144
@. face_u = local_velocity (face_coord, t)
145
145
@. face_uₕ = Geometry. project (Geometry. Covariant12Axis (), face_u)
@@ -196,7 +196,7 @@ function dss!(Y, cache, t)
196
196
Spaces. weighted_dss! (Y. c)
197
197
end
198
198
199
- function run_deformation_flow (use_limiter, fct_op)
199
+ function run_deformation_flow (use_limiter, fct_op, dt )
200
200
vert_domain = Domains. IntervalDomain (
201
201
Geometry. ZPoint {FT} (0 ),
202
202
Geometry. ZPoint {FT} (z_top);
@@ -262,6 +262,7 @@ function run_deformation_flow(use_limiter, fct_op)
262
262
face_uᵥ = Fields. Field (Geometry. Covariant3Vector{FT}, face_space),
263
263
limiter = use_limiter ? Limiters. QuasiMonotoneLimiter (Y. c. ρq) : nothing ,
264
264
fct_op,
265
+ dt,
265
266
)
266
267
267
268
problem = ODEProblem (
@@ -303,12 +304,12 @@ tracer_ranges(sol) =
303
304
return maximum (q_n) - minimum (q_n)
304
305
end
305
306
306
- third_upwind_sol = run_deformation_flow (false , upwind3)
307
- fct_sol = run_deformation_flow (false , FCTZalesak)
308
- lim_third_upwind_sol = run_deformation_flow (true , upwind3)
309
- lim_fct_sol = run_deformation_flow (true , FCTZalesak)
310
- lim_first_upwind_sol = run_deformation_flow (true , upwind1)
311
- lim_centered_sol = run_deformation_flow (true , nothing )
307
+ third_upwind_sol = run_deformation_flow (false , upwind3, _dt )
308
+ fct_sol = run_deformation_flow (false , FCTZalesak, _dt )
309
+ lim_third_upwind_sol = run_deformation_flow (true , upwind3, _dt )
310
+ lim_fct_sol = run_deformation_flow (true , FCTZalesak, _dt )
311
+ lim_first_upwind_sol = run_deformation_flow (true , upwind1, _dt )
312
+ lim_centered_sol = run_deformation_flow (true , nothing , _dt )
312
313
313
314
third_upwind_ρ_err, third_upwind_ρq_errs = conservation_errors (third_upwind_sol)
314
315
fct_ρ_err, fct_ρq_errs = conservation_errors (fct_sol)
0 commit comments