Skip to content

Commit 232055f

Browse files
committed
fortran/use-mpi-f08: fix intent of the internal ompi_*_f bindings
Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
1 parent 5a55e69 commit 232055f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

ompi/mpi/fortran/use-mpi-f08/bindings/mpi-f-interfaces-bind.h

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
! of Tennessee Research Foundation. All rights
88
! reserved.
99
! Copyright (c) 2012 Inria. All rights reserved.
10-
! Copyright (c) 2015-2018 Research Organization for Information Science
10+
! Copyright (c) 2015-2019 Research Organization for Information Science
1111
! and Technology (RIST). All rights reserved.
1212
! $COPYRIGHT$
1313
!
@@ -498,7 +498,8 @@ subroutine ompi_pack_f(inbuf,incount,datatype,outbuf,outsize, &
498498
position,comm,ierror) &
499499
BIND(C, name="ompi_pack_f")
500500
implicit none
501-
OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN) :: inbuf, outbuf
501+
OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN) :: inbuf
502+
OMPI_FORTRAN_IGNORE_TKR_TYPE :: outbuf
502503
INTEGER, INTENT(IN) :: incount, outsize
503504
INTEGER, INTENT(IN) :: datatype
504505
INTEGER, INTENT(INOUT) :: position
@@ -513,7 +514,8 @@ subroutine ompi_pack_external_f(datarep,inbuf,incount,datatype, &
513514
use :: mpi_f08_types, only : MPI_ADDRESS_KIND
514515
implicit none
515516
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(IN) :: datarep
516-
OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN) :: inbuf, outbuf
517+
OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN) :: inbuf
518+
OMPI_FORTRAN_IGNORE_TKR_TYPE :: outbuf
517519
INTEGER, INTENT(IN) :: incount
518520
INTEGER, INTENT(IN) :: datatype
519521
INTEGER(MPI_ADDRESS_KIND), INTENT(IN) :: outsize
@@ -770,7 +772,8 @@ subroutine ompi_unpack_f(inbuf,insize,position,outbuf,outcount, &
770772
datatype,comm,ierror) &
771773
BIND(C, name="ompi_unpack_f")
772774
implicit none
773-
OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN) :: inbuf, outbuf
775+
OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN) :: inbuf
776+
OMPI_FORTRAN_IGNORE_TKR_TYPE :: outbuf
774777
INTEGER, INTENT(IN) :: insize, outcount
775778
INTEGER, INTENT(INOUT) :: position
776779
INTEGER, INTENT(IN) :: datatype
@@ -785,7 +788,8 @@ subroutine ompi_unpack_external_f(datarep,inbuf,insize,position, &
785788
use :: mpi_f08_types, only : MPI_ADDRESS_KIND
786789
implicit none
787790
CHARACTER(KIND=C_CHAR), DIMENSION(*), INTENT(IN) :: datarep
788-
OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN) :: inbuf, outbuf
791+
OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN) :: inbuf
792+
OMPI_FORTRAN_IGNORE_TKR_TYPE :: outbuf
789793
INTEGER(MPI_ADDRESS_KIND), INTENT(IN) :: insize
790794
INTEGER(MPI_ADDRESS_KIND), INTENT(INOUT) :: position
791795
INTEGER, INTENT(IN) :: outcount

0 commit comments

Comments
 (0)