Performs a collective sum of weights tendencies.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(array2d), | intent(inout), | allocatable | :: | dw(:) |
subroutine dw_co_sum(dw)
!! Performs a collective sum of weights tendencies.
type(array2d), allocatable, intent(in out) :: dw(:)
integer(ik) :: n
do n = 1, size(dw) - 1
#ifdef CAF
call co_sum(dw(n) % array)
#endif
end do
end subroutine dw_co_sum