Skip to content

Commit

Permalink
Remove not-needed parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed May 23, 2024
1 parent a271a1c commit a6c4ff0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/callbacks_stage/subcell_bounds_check.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function (callback::BoundsCheckCallback)(u_ode, integrator, stage)
(; t, iter, alg) = integrator
u = wrap_array(u_ode, mesh, equations, solver, cache)

@trixi_timeit timer() "check_bounds" check_bounds(u, mesh, equations, solver, cache,
@trixi_timeit timer() "check_bounds" check_bounds(u, equations, solver, cache,
solver.volume_integral)

save_errors = callback.save_errors && (callback.interval > 0) &&
Expand All @@ -48,20 +48,20 @@ function (callback::BoundsCheckCallback)(u_ode, integrator, stage)
(iter + 1) >= integrator.opts.maxiters) # Maximum iterations reached
if save_errors
@trixi_timeit timer() "save_errors" save_bounds_check_errors(callback.output_directory,
u, t, iter + 1,
t, iter + 1,
equations,
solver.volume_integral)
end
end

@inline function check_bounds(u, mesh, equations, solver, cache,
@inline function check_bounds(u, equations, solver, cache,
volume_integral::VolumeIntegralSubcellLimiting)
check_bounds(u, mesh, equations, solver, cache, volume_integral.limiter)
check_bounds(u, equations, solver, cache, volume_integral.limiter)
end

@inline function save_bounds_check_errors(output_directory, u, t, iter, equations,
@inline function save_bounds_check_errors(output_directory, t, iter, equations,
volume_integral::VolumeIntegralSubcellLimiting)
save_bounds_check_errors(output_directory, u, t, iter, equations,
save_bounds_check_errors(output_directory, t, iter, equations,
volume_integral.limiter)
end

Expand Down
10 changes: 4 additions & 6 deletions src/callbacks_stage/subcell_bounds_check_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
@muladd begin
#! format: noindent

@inline function check_bounds(u,
mesh::Union{TreeMesh{2}, StructuredMesh{2}, P4estMesh{2}},
equations, solver, cache,
@inline function check_bounds(u, equations, solver, cache,
limiter::SubcellLimiterIDP)
(; local_twosided, positivity, local_onesided) = solver.volume_integral.limiter
(; variable_bounds) = limiter.cache.subcell_limiter_coefficients
Expand Down Expand Up @@ -105,7 +103,7 @@
return nothing
end

@inline function save_bounds_check_errors(output_directory, u, time, iter, equations,
@inline function save_bounds_check_errors(output_directory, time, iter, equations,
limiter::SubcellLimiterIDP)
(; local_twosided, positivity, local_onesided) = limiter
(; idp_bounds_delta_local) = limiter.cache
Expand Down Expand Up @@ -147,7 +145,7 @@ end
return nothing
end

@inline function check_bounds(u, mesh::AbstractMesh{2}, equations, solver, cache,
@inline function check_bounds(u, equations, solver, cache,
limiter::SubcellLimiterMCL)
(; var_min, var_max) = limiter.cache.subcell_limiter_coefficients
(; bar_states1, bar_states2, lambda1, lambda2) = limiter.cache.container_bar_states
Expand Down Expand Up @@ -627,7 +625,7 @@ end
return nothing
end

@inline function save_bounds_check_errors(output_directory, u, time, iter, equations,
@inline function save_bounds_check_errors(output_directory, time, iter, equations,
limiter::SubcellLimiterMCL)
(; mcl_bounds_delta_local) = limiter.cache

Expand Down

0 comments on commit a6c4ff0

Please sign in to comment.