From 19151b2c9711cf65741d940d2b2c20fa75f370ea Mon Sep 17 00:00:00 2001 From: bennibolm Date: Thu, 7 Dec 2023 15:43:21 +0100 Subject: [PATCH] Using maximum instead of reduce --- src/callbacks_stage/subcell_bounds_check_2d.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callbacks_stage/subcell_bounds_check_2d.jl b/src/callbacks_stage/subcell_bounds_check_2d.jl index 036107d8aa9..34ff789e3b1 100644 --- a/src/callbacks_stage/subcell_bounds_check_2d.jl +++ b/src/callbacks_stage/subcell_bounds_check_2d.jl @@ -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])