Skip to content

Commit

Permalink
run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwinters5000 committed Mar 5, 2024
1 parent 75d284d commit 376e84d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ boundary_conditions = Dict(:outerCircle => boundary_condition_free_stream,
# of interpolation routines from `calc_node_coordinates!` to create
# the physical coordinates in the mappings.
D_upw = upwind_operators(SummationByPartsOperators.Mattsson2017,
derivative_order=1,
accuracy_order=8,
xmin=-1.0, xmax=1.0,
N=17)
derivative_order = 1,
accuracy_order = 8,
xmin = -1.0, xmax = 1.0,
N = 17)

flux_splitting = splitting_vanleer_haenel
solver = FDSBP(D_upw,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ source_term = source_terms_convergence_test

boundary_condition_eoc = BoundaryConditionDirichlet(initial_condition)

boundary_conditions = Dict( :Top => boundary_condition_eoc,
:Bottom => boundary_condition_eoc,
:Right => boundary_condition_eoc,
:Left => boundary_condition_eoc )
boundary_conditions = Dict(:Top => boundary_condition_eoc,
:Bottom => boundary_condition_eoc,
:Right => boundary_condition_eoc,
:Left => boundary_condition_eoc)

###############################################################################
# Get the Upwind FDSBP approximation space
Expand All @@ -25,10 +25,10 @@ boundary_conditions = Dict( :Top => boundary_condition_eoc,
# of interpolation routines from `calc_node_coordinates!` to create
# the physical coordinates in the mappings.
D_upw = upwind_operators(SummationByPartsOperators.Mattsson2017,
derivative_order=1,
accuracy_order=4,
xmin=-1.0, xmax=1.0,
N=9)
derivative_order = 1,
accuracy_order = 4,
xmin = -1.0, xmax = 1.0,
N = 9)

flux_splitting = splitting_steger_warming
solver = FDSBP(D_upw,
Expand Down Expand Up @@ -77,7 +77,7 @@ callbacks = CallbackSet(summary_callback,
###############################################################################
# run the simulation

sol = solve(ode, SSPRK43(), abstol=1.0e-6, reltol=1.0e-6,
sol = solve(ode, SSPRK43(), abstol = 1.0e-6, reltol = 1.0e-6,
save_everystep = false, callback = callbacks)

summary_callback() # print the timer summary
24 changes: 16 additions & 8 deletions src/equations/compressible_euler_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,10 @@ function signature with argument `which` set to `Val{:minus}()` or `Val{:plus}()
"""
@inline function splitting_steger_warming(u, orientation_or_normal_direction,
equations::CompressibleEulerEquations2D)
fm = splitting_steger_warming(u, Val{:minus}(), orientation_or_normal_direction, equations)
fp = splitting_steger_warming(u, Val{:plus}(), orientation_or_normal_direction, equations)
fm = splitting_steger_warming(u, Val{:minus}(), orientation_or_normal_direction,
equations)
fp = splitting_steger_warming(u, Val{:plus}(), orientation_or_normal_direction,
equations)
return fm, fp
end

Expand Down Expand Up @@ -997,8 +999,10 @@ function signature with argument `which` set to `Val{:minus}()` or `Val{:plus}()
"""
@inline function splitting_vanleer_haenel(u, orientation_or_normal_direction,
equations::CompressibleEulerEquations2D)
fm = splitting_vanleer_haenel(u, Val{:minus}(), orientation_or_normal_direction, equations)
fp = splitting_vanleer_haenel(u, Val{:plus}(), orientation_or_normal_direction, equations)
fm = splitting_vanleer_haenel(u, Val{:minus}(), orientation_or_normal_direction,
equations)
fp = splitting_vanleer_haenel(u, Val{:plus}(), orientation_or_normal_direction,
equations)
return fm, fp
end

Expand Down Expand Up @@ -1129,8 +1133,10 @@ function signature with argument `which` set to `Val{:minus}()` or `Val{:plus}()
"""
@inline function splitting_lax_friedrichs(u, orientation_or_normal_direction,
equations::CompressibleEulerEquations2D)
fm = splitting_lax_friedrichs(u, Val{:minus}(), orientation_or_normal_direction, equations)
fp = splitting_lax_friedrichs(u, Val{:plus}(), orientation_or_normal_direction, equations)
fm = splitting_lax_friedrichs(u, Val{:minus}(), orientation_or_normal_direction,
equations)
fp = splitting_lax_friedrichs(u, Val{:plus}(), orientation_or_normal_direction,
equations)
return fm, fp
end

Expand Down Expand Up @@ -1188,7 +1194,8 @@ end
return SVector(f1m, f2m, f3m, f4m)
end

@inline function splitting_lax_friedrichs(u, ::Val{:plus}, normal_direction::AbstractVector,
@inline function splitting_lax_friedrichs(u, ::Val{:plus},
normal_direction::AbstractVector,
equations::CompressibleEulerEquations2D)
rho_e = last(u)
rho, v1, v2, p = cons2prim(u, equations)
Expand All @@ -1208,7 +1215,8 @@ end
return SVector(f1p, f2p, f3p, f4p)
end

@inline function splitting_lax_friedrichs(u, ::Val{:minus}, normal_direction::AbstractVector,
@inline function splitting_lax_friedrichs(u, ::Val{:minus},
normal_direction::AbstractVector,
equations::CompressibleEulerEquations2D)
rho_e = last(u)
rho, v1, v2, p = cons2prim(u, equations)
Expand Down

0 comments on commit 376e84d

Please sign in to comment.