From ff513ba4e47c2ae6e7d12a1f76fde98c061795a0 Mon Sep 17 00:00:00 2001 From: Benedict Geihe Date: Thu, 5 Sep 2024 09:55:44 +0200 Subject: [PATCH] format --- src/callbacks_step/analysis_dg2d_parallel.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/callbacks_step/analysis_dg2d_parallel.jl b/src/callbacks_step/analysis_dg2d_parallel.jl index 856a00688c3..ac3faa42f46 100644 --- a/src/callbacks_step/analysis_dg2d_parallel.jl +++ b/src/callbacks_step/analysis_dg2d_parallel.jl @@ -162,7 +162,8 @@ function integrate_via_indices(func::Func, u, normalize = normalize) # OBS! Global results are only calculated on MPI root, all other domains receive `nothing` - global_integral = MPI.Reduce!(Ref(local_integral), reduce_vector_plus, mpi_root(), mpi_comm()) + global_integral = MPI.Reduce!(Ref(local_integral), reduce_vector_plus, mpi_root(), + mpi_comm()) if mpi_isroot() integral = convert(typeof(local_integral), global_integral[]) else @@ -195,7 +196,8 @@ function integrate_via_indices(func::Func, u, end end - global_integral = MPI.Reduce!(Ref(integral), reduce_vector_plus, mpi_root(), mpi_comm()) + global_integral = MPI.Reduce!(Ref(integral), reduce_vector_plus, mpi_root(), + mpi_comm()) total_volume = MPI.Reduce(volume, +, mpi_root(), mpi_comm()) if mpi_isroot() integral = convert(typeof(integral), global_integral[])