MpiFx 1.4.0
Functions/Subroutines
mpifx_init_module Module Reference

Contains wrapper for MPI_INIT. More...

Functions/Subroutines

subroutine, public mpifx_init (error)
 Initializes the MPI environment.
 
subroutine, public mpifx_init_thread (requiredthreading, providedthreading, error)
 Initializes a threaded MPI environment.
 

Detailed Description

Contains wrapper for MPI_INIT.

Function/Subroutine Documentation

◆ mpifx_init()

subroutine, public mpifx_init_module::mpifx_init ( integer, intent(out), optional error)

Initializes the MPI environment.

Parameters
errorError code on return. If not present and error code would have been non-zero, routine aborts program execution.
See also
MPI documentation (MPI_INIT)

Example:

program test_mpifx
  use libmpifx_module
  implicit none

  type(mpifx_comm) :: mycomm

  call mpifx_init()
  call mycomm%init()
  :
  call mpifx_finalize()

end program test_mpifx

◆ mpifx_init_thread()

subroutine, public mpifx_init_module::mpifx_init_thread ( integer, intent(in) requiredthreading,
integer, intent(out), optional providedthreading,
integer, intent(out), optional error )

Initializes a threaded MPI environment.

Parameters
requiredThreadingThreading support required (MPI_THREAD_SINGLE, MPI_THREAD_FUNNELED, MPI_THREAD_SERIALIZED, MPI_THREAD_MULTIPLE)
proviedeThreadingThreading level provided by the MPI-framework. If not present and the framework offers a lower support than required, the routine stops program execution.
errorError code on return. If not present and error code would have been non-zero, routine aborts program execution.
See also
MPI documentation (MPI_INIT)

Example:

program test_mpifx
  use libmpifx_module
  implicit none

  type(mpifx_comm) :: mycomm

  call mpifx_init_thread(MPI_THREAD_FUNNELED)
  call mycomm%init()
  :
  call mpifx_finalize()

end program test_mpifx