Skip to content

Commit 3f017fa

Browse files
Alessandro FanfarilloDamian Rouson
authored andcommitted
Setting the right team_id for the initial team (-1)
1 parent d6236d8 commit 3f017fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/mpi/mpi_caf.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
4444
#include <mpi.h>
4545
#include <pthread.h>
4646
#include <signal.h> /* For raise */
47-
#include <limits.h>
4847

4948
#ifdef HAVE_MPI_EXT_H
5049
#include <mpi-ext.h>
@@ -800,7 +799,7 @@ PREFIX (init) (int *argc, char ***argv)
800799
stat_tok = malloc (sizeof (MPI_Win));
801800

802801
teams_list = (caf_teams_list *)calloc(1,sizeof(caf_teams_list));
803-
teams_list->team_id = INT_MIN;
802+
teams_list->team_id = -1;
804803
MPI_Comm *tmp_comm = (MPI_Comm *)calloc(1,sizeof(MPI_Comm));
805804
*tmp_comm = CAF_COMM_WORLD;
806805
teams_list->team = tmp_comm;

0 commit comments

Comments
 (0)