Skip to content

Commit 9249269

Browse files
author
Alessandro Fanfarillo
committed
C to Fortran compatibility for get_team
1 parent 820d2a8 commit 9249269

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/mpi/mpi_caf.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4876,14 +4876,18 @@ void PREFIX (change_team) (caf_team_t *team, int coselector __attribute__ ((unus
48764876
MPI_Comm_size(*tmp_comm,&caf_num_images);
48774877
}
48784878

4879-
int
4879+
MPI_Fint
48804880
PREFIX (get_team) (caf_team_t *team)
48814881
{
48824882
if(team != NULL) caf_runtime_error("get_team does not yet support the optional team argument");
48834883

48844884
MPI_Comm* comm_ptr = teams_list->team;
48854885

4886-
return *(int*)comm_ptr ;
4886+
MPI_Fint ret = MPI_Comm_c2f(*comm_ptr);
4887+
4888+
return ret;
4889+
4890+
// return *(int*)comm_ptr;
48874891
}
48884892

48894893
int

0 commit comments

Comments
 (0)