Skip to content

Commit 031b54d

Browse files
authored
Interface for creating participant with custom MPI communicator (#44)
Closes #43
1 parent 11f98bd commit 031b54d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

precice.f90

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,22 @@ subroutine precicef_create(participantName, configFileName, &
1818
integer(kind=c_int), value, intent(in) :: configFileNameLength
1919
end subroutine precicef_create
2020

21+
subroutine precicef_create_with_communicator(participantName, configFileName, &
22+
& solverProcessIndex, solverProcessSize, &
23+
& communicator, &
24+
& participantNameLength, configFileNameLength) &
25+
& bind(c, name='precicef_create_with_communicator_')
26+
27+
import :: c_char, c_int
28+
character(kind=c_char), dimension(*), intent(in) :: participantName
29+
character(kind=c_char), dimension(*), intent(in) :: configFileName
30+
integer(kind=c_int), intent(in) :: solverProcessIndex
31+
integer(kind=c_int), intent(in) :: solverProcessSize
32+
integer(kind=c_int), intent(in) :: communicator
33+
integer(kind=c_int), value, intent(in) :: participantNameLength
34+
integer(kind=c_int), value, intent(in) :: configFileNameLength
35+
end subroutine precicef_create_with_communicator
36+
2137
subroutine precicef_initialize() &
2238
& bind(c, name='precicef_initialize_')
2339

0 commit comments

Comments
 (0)