Skip to content

Commit

Permalink
avoid globals
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Jan 9, 2025
1 parent 164794c commit 68cec10
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/structured_2d_dgsem/elixir_euler_vortex_perk4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ function initial_condition_isentropic_vortex(x, t, equations::CompressibleEulerE
end
initial_condition = initial_condition_isentropic_vortex

edge_length = 20.0
edge_length() = 20.0

N_passes = 1
t_end() = edge_length * N_passes
N_passes() = 1
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)
coordinates_min = (-edge_length() / 2, -edge_length() / 2)
coordinates_max = (edge_length() / 2, edge_length() / 2)

cells_per_dimension = (32, 32)
mesh = StructuredMesh(cells_per_dimension, coordinates_min, coordinates_max)
Expand Down

0 comments on commit 68cec10

Please sign in to comment.