Skip to content

Commit

Permalink
Remove doubled code
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed Jan 31, 2024
1 parent 86ad320 commit b33137c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/callbacks_stage/subcell_bounds_check.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,6 @@ end
println(variable_string * ":\n- positivity: ",
idp_bounds_delta_global[Symbol(variable_string, "_min")])
end
for variable in limiter.positivity_variables_nonlinear
variable_string = string(variable)
println(variable_string * ":\n- positivity: ",
idp_bounds_delta_global[Symbol(variable_string, "_min")])
end
end
println(""^100 * "\n")

Expand Down
6 changes: 4 additions & 2 deletions src/callbacks_stage/subcell_bounds_check_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
@threaded for element in eachelement(solver, cache)
deviation = deviation_threaded[stride_size * Threads.threadid()]
for j in eachnode(solver), i in eachnode(solver)
s = entropy_spec(get_node_vars(u, equations, solver, i, j, element), equations)
s = entropy_spec(get_node_vars(u, equations, solver, i, j, element),
equations)
deviation = max(deviation, variable_bounds[key][i, j, element] - s)
end
deviation_threaded[stride_size * Threads.threadid()] = deviation
Expand All @@ -61,7 +62,8 @@
@threaded for element in eachelement(solver, cache)
deviation = deviation_threaded[stride_size * Threads.threadid()]
for j in eachnode(solver), i in eachnode(solver)
s = entropy_math(get_node_vars(u, equations, solver, i, j, element), equations)
s = entropy_math(get_node_vars(u, equations, solver, i, j, element),
equations)
deviation = max(deviation, s - variable_bounds[key][i, j, element])
end
deviation_threaded[stride_size * Threads.threadid()] = deviation
Expand Down

0 comments on commit b33137c

Please sign in to comment.