Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed Nov 8, 2023
1 parent 310832c commit f9ec72c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/solvers/dgsem_tree/subcell_limiters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ including:
- One-sided limiting for specific and mathematical entropy (`spec_entropy`, `math_entropy`)
Conservative variables to be limited are passed as a vector of strings, e.g. `local_minmax_variables_cons = ["rho"]`
and `positivity_variables_cons = ["rho"]`. For the non-linear variables the specific function is
and `positivity_variables_cons = ["rho"]`. For non-linear variables the specific functions are
passed in a vector, e.g. `positivity_variables_nonlinear = [pressure]`.
The bounds can be calculated using the `bar_states` or the low-order FV solution. The positivity
Expand Down Expand Up @@ -83,8 +83,8 @@ struct SubcellLimiterIDP{RealT <: Real, LimitingVariablesNonlinear,
bar_states::Bool
cache::Cache
max_iterations_newton::Int
newton_tolerances::Tuple{RealT, RealT} # Relative and absolute tolerances for Newton's method
gamma_constant_newton::RealT # Constant for the subcell limiting of convex (nonlinear) constraints
newton_tolerances::Tuple{RealT, RealT} # Relative and absolute tolerances for Newton's method
gamma_constant_newton::RealT # Constant for the subcell limiting of convex (nonlinear) constraints
smoothness_indicator::Bool
threshold_smoothness_indicator::RealT
IndicatorHG::Indicator
Expand Down Expand Up @@ -170,7 +170,7 @@ end

function Base.show(io::IO, limiter::SubcellLimiterIDP)
@nospecialize limiter # reduce precompilation time
@unpack local_minmax, positivity, spec_entropy, math_entropy = limiter
(; local_minmax, positivity, spec_entropy, math_entropy) = limiter

print(io, "SubcellLimiterIDP(")
if !(local_minmax || positivity || spec_entropy || math_entropy)
Expand Down

0 comments on commit f9ec72c

Please sign in to comment.