From 164794c5d9cdb807dd3a32c0d1d81a8cf0ebfe23 Mon Sep 17 00:00:00 2001 From: Daniel_Doehring Date: Thu, 9 Jan 2025 11:22:11 +0100 Subject: [PATCH] make t_end function --- examples/structured_2d_dgsem/elixir_euler_vortex_perk4.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/structured_2d_dgsem/elixir_euler_vortex_perk4.jl b/examples/structured_2d_dgsem/elixir_euler_vortex_perk4.jl index 358e1716ab..284798da74 100644 --- a/examples/structured_2d_dgsem/elixir_euler_vortex_perk4.jl +++ b/examples/structured_2d_dgsem/elixir_euler_vortex_perk4.jl @@ -20,7 +20,7 @@ The classical isentropic vortex test case as presented in Section 5.1 of """ function initial_condition_isentropic_vortex(x, t, equations::CompressibleEulerEquations2D) # Evaluate error after full domain traversion - if t == t_end + if t == t_end() t = 0 end @@ -60,8 +60,8 @@ initial_condition = initial_condition_isentropic_vortex edge_length = 20.0 N_passes = 1 -t_end = edge_length * N_passes -tspan = (0.0, t_end) +t_end() = edge_length * N_passes +tspan = (0.0, t_end()) coordinates_min = (-edge_length / 2, -edge_length / 2) coordinates_max = (edge_length / 2, edge_length / 2)