Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
amrueda committed Nov 21, 2023
1 parent b30fe7d commit 2942c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/p4est_2d_dgsem/elixir_euler_cubed_sphere_shell.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function initial_condition_advection_sphere(x, t, equations::CompressibleEulerEq
rho = 1.0 + exp(-20 * (x[1]^2 + x[3]^2))
# Constant pressure
p = 1.0

# Spherical coordinates for the point x
if sign(x[2]) == 0.0
signy = 1.0
Expand All @@ -28,7 +28,7 @@ function initial_condition_advection_sphere(x, t, equations::CompressibleEulerEq
# Co-latitude
colat = acos(x[3] / sqrt(x[1]^2 + x[2]^2 + x[3]^2))
# Latitude (auxiliary variable)
lat = -colat + 0.5 * pi
lat = -colat + 0.5 * pi
# Longitude
r_xy = sqrt(x[1]^2 + x[2]^2)
if r_xy == 0.0
Expand Down

0 comments on commit 2942c79

Please sign in to comment.