Skip to content

Commit

Permalink
Using maximum instead of reduce
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed Dec 7, 2023
1 parent 26d3d0e commit 19151b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/callbacks_stage/subcell_bounds_check_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

for (key, _) in idp_bounds_delta_local
# Reduce threaded local maximum deviations. Save in first entry.
idp_bounds_delta_local[key][1] = reduce(max, idp_bounds_delta_local[key])
idp_bounds_delta_local[key][1] = maximum(idp_bounds_delta_local[key])
# Update global maximum deviations
idp_bounds_delta_global[key] = max(idp_bounds_delta_global[key],
idp_bounds_delta_local[key][1])
Expand Down

0 comments on commit 19151b2

Please sign in to comment.