We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32966da + 99cffec commit 32bfff1Copy full SHA for 32bfff1
ompi/mpi/fortran/use-mpi-f08/add_error_string_f08.F90
@@ -11,13 +11,14 @@
11
12
subroutine MPI_Add_error_string_f08(errorcode,string,ierror)
13
use :: ompi_mpifh_bindings, only : ompi_add_error_string_f
14
+ use, intrinsic :: ISO_C_BINDING, only : C_INT
15
implicit none
16
integer, intent(in) :: errorcode
17
character(len=*), intent(in) :: string
18
integer, optional, intent(out) :: ierror
19
integer :: c_ierror
20
- call ompi_add_error_string_f(errorcode, string, c_ierror, len(string))
21
+ call ompi_add_error_string_f(errorcode, string, c_ierror, len(string,KIND=C_INT))
22
if (present(ierror)) ierror = c_ierror
23
24
end subroutine MPI_Add_error_string_f08
ompi/mpi/fortran/use-mpi-f08/bindings/mpi-f-interfaces-bind.h
ompi/mpi/fortran/use-mpi-f08/close_port_f08.F90
@@ -11,12 +11,13 @@
subroutine MPI_Close_port_f08(port_name,ierror)
use :: ompi_mpifh_bindings, only : ompi_close_port_f
CHARACTER(LEN=*), INTENT(IN) :: port_name
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
- call ompi_close_port_f(port_name,c_ierror,len(port_name))
+ call ompi_close_port_f(port_name,c_ierror,len(port_name,KIND=C_INT))
end subroutine MPI_Close_port_f08
ompi/mpi/fortran/use-mpi-f08/comm_accept_f08.F90
@@ -12,6 +12,7 @@
subroutine MPI_Comm_accept_f08(port_name,info,root,comm,newcomm,ierror)
use :: mpi_f08_types, only : MPI_Info, MPI_Comm
use :: ompi_mpifh_bindings, only : ompi_comm_accept_f
TYPE(MPI_Info), INTENT(IN) :: info
@@ -22,7 +23,7 @@ subroutine MPI_Comm_accept_f08(port_name,info,root,comm,newcomm,ierror)
25
call ompi_comm_accept_f(port_name,info%MPI_VAL,root,comm%MPI_VAL,newcomm%MPI_VAL, &
- c_ierror,len(port_name))
26
+ c_ierror,len(port_name,KIND=C_INT))
27
28
29
end subroutine MPI_Comm_accept_f08
ompi/mpi/fortran/use-mpi-f08/comm_connect_f08.F90
subroutine MPI_Comm_connect_f08(port_name,info,root,comm,newcomm,ierror)
use :: ompi_mpifh_bindings, only : ompi_comm_connect_f
@@ -22,7 +23,7 @@ subroutine MPI_Comm_connect_f08(port_name,info,root,comm,newcomm,ierror)
call ompi_comm_connect_f(port_name,info%MPI_VAL,root,comm%MPI_VAL,newcomm%MPI_VAL, &
end subroutine MPI_Comm_connect_f08
ompi/mpi/fortran/use-mpi-f08/comm_create_from_group_f08.F90
@@ -14,6 +14,7 @@
subroutine MPI_Comm_create_from_group_f08(group, stringtag, info, errhandler, newcomm, ierror)
use :: mpi_f08_types, only : MPI_Comm, MPI_Group, MPI_Errhandler, MPI_Info
use :: ompi_mpifh_bindings, only : ompi_comm_create_from_group_f
TYPE(MPI_Group), INTENT(IN) :: group
CHARACTER(LEN=*), INTENT(IN) :: stringtag
@@ -24,7 +25,7 @@ subroutine MPI_Comm_create_from_group_f08(group, stringtag, info, errhandler, ne
call ompi_comm_create_from_group_f(group%MPI_VAL, stringtag, info%MPI_VAL, errhandler%MPI_VAL, &
- newcomm%MPI_VAL, c_ierror, len(stringtag))
+ newcomm%MPI_VAL, c_ierror, len(stringtag,KIND=C_INT))
30
31
end subroutine MPI_Comm_create_from_group_f08
ompi/mpi/fortran/use-mpi-f08/comm_get_name_f08.F90
subroutine MPI_Comm_get_name_f08(comm,comm_name,resultlen,ierror)
use :: mpi_f08_types, only : MPI_Comm, MPI_MAX_OBJECT_NAME
use :: ompi_mpifh_bindings, only : ompi_comm_get_name_f
TYPE(MPI_Comm), INTENT(IN) :: comm
CHARACTER(LEN=*), INTENT(OUT) :: comm_name
@@ -20,7 +21,7 @@ subroutine MPI_Comm_get_name_f08(comm,comm_name,resultlen,ierror)
call ompi_comm_get_name_f(comm%MPI_VAL,comm_name,resultlen,c_ierror, &
- len(comm_name))
+ len(comm_name,KIND=C_INT))
end subroutine MPI_Comm_get_name_f08
ompi/mpi/fortran/use-mpi-f08/comm_set_name_f08.F90
@@ -12,13 +12,14 @@
subroutine MPI_Comm_set_name_f08(comm,comm_name,ierror)
use :: mpi_f08_types, only : MPI_Comm
use :: ompi_mpifh_bindings, only : ompi_comm_set_name_f
CHARACTER(LEN=*), INTENT(IN) :: comm_name
- call ompi_comm_set_name_f(comm%MPI_VAL,comm_name,c_ierror,len(comm_name))
+ call ompi_comm_set_name_f(comm%MPI_VAL,comm_name,c_ierror,len(comm_name,KIND=C_INT))
end subroutine MPI_Comm_set_name_f08
ompi/mpi/fortran/use-mpi-f08/comm_spawn_f08.F90
@@ -14,6 +14,7 @@ subroutine MPI_Comm_spawn_f08(command,argv,maxprocs,info,root,comm,intercomm, &
array_of_errcodes,ierror)
use :: ompi_mpifh_bindings, only : ompi_comm_spawn_f
CHARACTER(LEN=*), INTENT(IN) :: command, argv(*)
INTEGER, INTENT(IN) :: maxprocs, root
@@ -27,7 +28,7 @@ subroutine MPI_Comm_spawn_f08(command,argv,maxprocs,info,root,comm,intercomm, &
call ompi_comm_spawn_f(command,argv,maxprocs, &
info%MPI_VAL,root,comm%MPI_VAL,intercomm%MPI_VAL, &
array_of_errcodes,c_ierror, &
- len(command), len(argv))
+ len(command,KIND=C_INT), len(argv,KIND=C_INT))
32
33
34
end subroutine MPI_Comm_spawn_f08
ompi/mpi/fortran/use-mpi-f08/comm_spawn_multiple_f08.F90
@@ -15,6 +15,7 @@ subroutine MPI_Comm_spawn_multiple_f08(count,array_of_commands,array_of_argv, &
comm,intercomm,array_of_errcodes,ierror)
use :: ompi_mpifh_bindings, only : ompi_comm_spawn_multiple_f
INTEGER, INTENT(IN) :: count, root
INTEGER, INTENT(IN) :: array_of_maxprocs(count)
@@ -33,7 +34,7 @@ subroutine MPI_Comm_spawn_multiple_f08(count,array_of_commands,array_of_argv, &
call ompi_comm_spawn_multiple_f(count,array_of_commands,array_of_argv, &
35
array_of_maxprocs,array_of_info(:)%MPI_VAL,root, &
36
comm%MPI_VAL,intercomm%MPI_VAL,array_of_errcodes,c_ierror, &
- len(array_of_commands), len(array_of_argv))
37
+ len(array_of_commands,KIND=C_INT), len(array_of_argv,KIND=C_INT))
38
39
40
end subroutine MPI_Comm_spawn_multiple_f08
0 commit comments