abort_comm Subroutine

public subroutine abort_comm(comm, errorcode)

Aborts all processes in the communicator with the given error code

Arguments

Type IntentOptional Attributes Name
type(comm_t), intent(in) :: comm
integer(kind=int32), intent(in) :: errorcode

Variables

Type Visibility Attributes Name Initial
integer(kind=int32), private :: ierr

Source Code

   subroutine abort_comm(comm, errorcode)
      !! Aborts all processes in the communicator with the given error code
      type(comm_t), intent(in) :: comm
      integer(int32), intent(in) :: errorcode
      integer(int32) :: ierr

      ! No ranks to bring down with us.
      error stop "pic_mpi_serial: abort_comm"
   end subroutine abort_comm