Skip to content

Commit

Permalink
make t_end function
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Jan 9, 2025
1 parent 22b9a50 commit 164794c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/structured_2d_dgsem/elixir_euler_vortex_perk4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 164794c

Please sign in to comment.