
Only in C bindings: - MPI_Status_c2f08() - MPI_Status_f082c() In all bindings but mpif.h - MPI_Status_f082f() - MPI_Status_f2f08() and the PMPI_* related subroutines As initially inteded by the MPI forum, the Fortran to/from Fortran 2008 conversion subtoutines are *not* implemented in the mpif.h bindings. See the discussion at https://github.com/mpi-forum/mpi-issues/issues/298 Refs. open-mpi/ompi#1475 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
20 строки
675 B
Fortran
20 строки
675 B
Fortran
! -*- f90 -*-
|
|
!
|
|
! Copyright (c) 2020 Research Organization for Information Science
|
|
! and Technology (RIST). All rights reserved.
|
|
! $COPYRIGHT$
|
|
|
|
subroutine MPI_Status_f2f08_f08(f_status,f08_status,ierror)
|
|
use :: mpi_f08_types, only : MPI_Status, MPI_STATUS_SIZE
|
|
use :: ompi_mpifh_bindings, only : ompi_status_f2f08_f
|
|
implicit none
|
|
INTEGER, INTENT(IN) :: f_status(MPI_STATUS_SIZE)
|
|
TYPE(MPI_Status), INTENT(OUT) :: f08_status
|
|
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
|
|
integer :: c_ierror
|
|
|
|
call ompi_status_f2f08_f(f_status, f08_status, c_ierror)
|
|
if (present(ierror)) ierror = c_ierror
|
|
|
|
end subroutine MPI_Status_f2f08_f08
|