Skip to content

Commit a0f9932

Browse files
committed
fix fortran intent error
Signed-off-by: Thomas Naughton <[email protected]>
1 parent e848016 commit a0f9932

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,14 +398,14 @@ end subroutine ompi_recv_init_f
398398
subroutine ompi_remove_error_class_f(errorclass,ierror) &
399399
BIND(C, name="ompi_remove_error_class_f")
400400
implicit none
401-
INTEGER, INTENT(OUT) :: errorclass
401+
INTEGER, INTENT(IN) :: errorclass
402402
INTEGER, INTENT(OUT) :: ierror
403403
end subroutine ompi_remove_error_class_f
404404

405405
subroutine ompi_remove_error_code_f(errorcode,ierror) &
406406
BIND(C, name="ompi_remove_error_code_f")
407407
implicit none
408-
INTEGER, INTENT(OUT) :: errorcode
408+
INTEGER, INTENT(IN) :: errorcode
409409
INTEGER, INTENT(OUT) :: ierror
410410
end subroutine ompi_remove_error_code_f
411411

ompi/mpi/fortran/use-mpi-f08/remove_error_class_f08.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
subroutine MPI_Remove_error_class_f08(errorclass,ierror)
1414
use :: ompi_mpifh_bindings, only : ompi_remove_error_class_f
1515
implicit none
16-
INTEGER, INTENT(INOUT) :: errorclass
16+
INTEGER, INTENT(IN) :: errorclass
1717
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
1818
integer :: c_ierror
1919

ompi/mpi/fortran/use-mpi-f08/remove_error_code_f08.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
subroutine MPI_Remove_error_code_f08(errorcode,ierror)
1414
use :: ompi_mpifh_bindings, only : ompi_remove_error_code_f
1515
implicit none
16-
INTEGER, INTENT(INOUT) :: errorcode
16+
INTEGER, INTENT(IN) :: errorcode
1717
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
1818
integer :: c_ierror
1919

0 commit comments

Comments
 (0)