MPI Communication to gather residual from all processes
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(controltype), | intent(in) | :: | control | Control parameters: number of variables |
subroutine collect_resnorm_from_all_blocks(control)
!< MPI Communication to gather residual from all processes
implicit none
type(controltype), intent(in) :: control
!< Control parameters: number of variables
integer :: ierr
call MPI_ALLGATHER(Res_abs, control%n_var+1, MPI_DOUBLE_PRECISION, &
buffer, control%n_var+1, MPI_DOUBLE_PRECISION, MPI_COMM_WORLD, ierr)
end subroutine collect_resnorm_from_all_blocks