sum_allreduce_complex Subroutine

private subroutine sum_allreduce_complex(z)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
complex, intent(inout) :: z

Contents

Source Code


Source Code

  subroutine sum_allreduce_complex (z)
    implicit none
    complex, intent (in out) :: z
# ifdef MPI
    integer :: ierror
!$OMP MASTER
    call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
    call mpi_allreduce &
         (MPI_IN_PLACE, z, 1, mpicmplx, MPI_SUM, mp_comm, ierror)
!$OMP MASTER
    call time_message(.false., time_mp_collectives, ' MPI Collectives')
!$OMP END MASTER
# endif
  end subroutine sum_allreduce_complex