@@ -394,7 +394,8 @@ function integrate_via_indices(func::Func, u,
394394 T8codeMesh{3 }},
395395 equations, dg:: DGSEM , cache,
396396 args... ; normalize = true ) where {Func}
397- return integrate_via_indices (func, trixi_backend (u), u, mesh, equations, dg, cache, args... ; normalize = normalize)
397+ return integrate_via_indices (func, trixi_backend (u), u, mesh, equations, dg, cache,
398+ args... ; normalize = normalize)
398399end
399400
400401function integrate_via_indices (func:: Func , :: Nothing , u,
@@ -443,12 +444,16 @@ function integrate_via_indices(func::Func, backend::Backend, u,
443444 # `func(u, 1,1,1,1, equations, dg, args...)` might access GPU memory
444445 # so we have to rely on the compiler to correctly infer the type of the integral here.
445446 # TODO : Technically we need device_promote_op here that "infers" the function within the context of the GPU.
446- integral₀ = zero (Base. promote_op (func, typeof (u), Int, Int, Int, Int, typeof (equations), typeof (dg), map (typeof, args)... ))
447+ integral₀ = zero (Base. promote_op (func, typeof (u), Int, Int, Int, Int,
448+ typeof (equations), typeof (dg),
449+ map (typeof, args)... ))
447450 init = neutral = (integral₀, zero (real (mesh)))
448451
449452 # Use quadrature to numerically integrate over entire domain
450453 num_elements = nelements (dg, cache)
451- _integral, _total_volume = AcceleratedKernels. mapreduce (local_plus, 1 : num_elements, backend; init, neutral) do element
454+ _integral, _total_volume = AcceleratedKernels. mapreduce (local_plus, 1 : num_elements,
455+ backend; init,
456+ neutral) do element
452457 # Initialize integral with zeros of the right shape
453458 integral, total_volume = neutral
454459
0 commit comments