comms_send_logical Subroutine

private subroutine comms_send_logical(array, size, to)

Send logical array to specified node

Arguments

Type IntentOptional AttributesName
logical, intent(inout) :: array
integer, intent(in) :: size
integer, intent(in) :: to

Called by

proc~~comms_send_logical~~CalledByGraph proc~comms_send_logical comms_send_logical interface~comms_send comms_send interface~comms_send->proc~comms_send_logical

Contents

Source Code


Source Code

  subroutine comms_send_logical(array, size, to)
    !! Send logical array to specified node

    implicit none

    logical, intent(inout) :: array
    integer, intent(in)    :: size
    integer, intent(in)    :: to

#ifdef MPI
    integer :: error

    call MPI_send(array, size, MPI_logical, to, &
                  mpi_send_tag, mpi_comm_world, error)

    if (error .ne. MPI_success) then
      call io_error('Error in comms_send_logical')
    end if
#endif

    return

  end subroutine comms_send_logical