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[])