MpiFx 1.4.0
Functions/Subroutines
mpifx_abort_module Module Reference

Contains wrapper for MPI_ABORT. More...

Functions/Subroutines

subroutine, public mpifx_abort (mycomm, errorcode, error)
 Aborts MPI processes for the given communicator.
 

Detailed Description

Contains wrapper for MPI_ABORT.

Function/Subroutine Documentation

◆ mpifx_abort()

subroutine, public mpifx_abort_module::mpifx_abort ( type(mpifx_comm), intent(in) mycomm,
integer, intent(in), optional errorcode,
integer, intent(out), optional error )

Aborts MPI processes for the given communicator.

Parameters
mycommMPI handler.
errorcodeExit error code for the operating system. (default: 1)
errorOptional error flag.
See also
MPI documentation (MPI_ABORT)

Example:

program test_abort
  use libmpifx_module
  implicit none

  type(mpifx_comm) :: mycomm

  call mpifx_init()
  call mycomm%init()
  :
  ! Stoping the program (e.g. due to error we can not handle)
  call mpifx_abort(mycomm, 2)

end program test_abort