custom data type that holds the MPI communicators
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(MPI_COMM), | public | :: | comm |
use the MPI_COMM from the mpi_f08 module interface |
|||
integer(kind=int32), | public | :: | m_ierr | ||||
integer(kind=int32), | public | :: | m_rank |
MPI rank |
|||
integer(kind=int32), | public | :: | m_size |
MPI size |
finalize the MPI library
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(pic_comm_type), | intent(inout) | :: | self |
initilalize the MPI library and get the size and rank variables
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(pic_comm_type), | intent(inout) | :: | self |
type :: pic_comm_type !! custom data type that holds the MPI communicators private type(MPI_COMM), public :: comm !! use the MPI_COMM from the mpi_f08 module interface integer(int32), public :: m_rank !! MPI rank integer(int32), public :: m_size !! MPI size integer(int32), public :: m_ierr contains procedure :: init => pic_comm_init procedure :: finalize => pic_comm_finalize end type pic_comm_type