Skip to content

Commit 131b769

Browse files
author
Alessandro Fanfarillo
committed
Setting the right team_id for the initial team (-1)
1 parent 62071c0 commit 131b769

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>
@@ -759,7 +758,7 @@ PREFIX (init) (int *argc, char ***argv)
759758
stat_tok = malloc (sizeof (MPI_Win));
760759

761760
teams_list = (caf_teams_list *)calloc(1,sizeof(caf_teams_list));
762-
teams_list->team_id = INT_MIN;
761+
teams_list->team_id = -1;
763762
MPI_Comm *tmp_comm = (MPI_Comm *)calloc(1,sizeof(MPI_Comm));
764763
*tmp_comm = CAF_COMM_WORLD;
765764
teams_list->team = tmp_comm;

0 commit comments

Comments
 (0)