1
1
openmpi/ompi/mpi/fortran/use-mpi-tkr/pmpi-f90-status.h
Gilles Gouaillardet e97d3ce645 Add missing MPI_Status conversion subroutines
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>
2020-09-09 06:59:12 -07:00

36 строки
847 B
Fortran

! -*- fortran -*-
!
! Copyright (c) 2020 Research Organization for Information Science
! and Technology (RIST). All rights reserved.
! $COPYRIGHT$
!
! Additional copyrights may follow
!
! $HEADER$
interface PMPI_Status_f082f
subroutine PMPI_Status_f082f(f08_status, f_status, ierror)
use mpi_types
include 'mpif-config.h'
type(MPI_Status), intent(in) :: f08_status
integer, intent(out) :: f_status(MPI_STATUS_SIZE)
integer, intent(out) :: ierror
end subroutine PMPI_Status_f082f
end interface
interface PMPI_Status_f2f08
subroutine PMPI_Status_f2f08(f_status, f08_status, ierror)
use mpi_types
include 'mpif-config.h'
integer, intent(in) :: f_status(MPI_STATUS_SIZE)
type(MPI_Status), intent(out) :: f08_status
integer, intent(out) :: ierror
end subroutine PMPI_Status_f2f08
end interface