slice_max_sum Interface

interface
public subroutine slice_max_sum(self, max_val, sum_val, f, i_slice, enforced_data_loc)

Arguments

Type IntentOptional Attributes Name
class(base_backend_t) :: self
real(kind=dp), intent(out) :: max_val
real(kind=dp), intent(out) :: sum_val
class(field_t), intent(in) :: f
integer, intent(in) :: i_slice
integer, intent(in), optional :: enforced_data_loc

Description

Reduces a single slice of f at index i_slice along f's DIR axis. Returns signed max (not abs) and signed sum. No division by count. Caller is responsible for MPI_Allreduce across ranks.