Get Version of the MPI Library (MPI 3)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(out) | :: | version |
Version of the library, declared as CHARACTER(LEN=mp_max_library_version_string) |
||
integer, | intent(out) | :: | resultlen |
Length (in printable characters) of the result returned in version (integer) |
SUBROUTINE mp_get_library_version(version, resultlen)
!! Get Version of the MPI Library (MPI 3)
CHARACTER(LEN=*), INTENT(OUT) :: version
!! Version of the library, declared as CHARACTER(LEN=mp_max_library_version_string)
INTEGER, INTENT(OUT) :: resultlen
!! Length (in printable characters) of the result returned in version (integer)
#if defined(__parallel)
CHARACTER(LEN=*), PARAMETER :: routineN = 'mp_get_library_version'
INTEGER :: ierr
ierr = 0
CALL mpi_get_library_version(version, resultlen, ierr)
IF (ierr /= 0) CALL mp_stop(ierr, "mpi_get_library_version @ "//routineN)
#else
version = ''
resultlen = 0
#endif
END SUBROUTINE mp_get_library_version