@@ -1695,7 +1695,7 @@ PREFIX (send) (caf_token_t token, size_t offset, int image_index,
1695
1695
gfc_descriptor_t * dest ,
1696
1696
caf_vector_t * dst_vector __attribute__ ((unused )),
1697
1697
gfc_descriptor_t * src , int dst_kind , int src_kind ,
1698
- bool mrt , int * stat )
1698
+ bool mrt , int * stat , void * team )
1699
1699
{
1700
1700
/* FIXME: Implement vector subscripts, type conversion and check whether
1701
1701
string-kind conversions are permitted.
@@ -5190,7 +5190,7 @@ void PREFIX (form_team) (int team_id, caf_team_t *team, int index __attribute__
5190
5190
teams_list = tmp ;
5191
5191
teams_list -> team_id = team_id ;
5192
5192
teams_list -> team = newcomm ;
5193
- * team = newcomm ;
5193
+ * team = tmp ;
5194
5194
}
5195
5195
5196
5196
void PREFIX (change_team ) (caf_team_t * team , int coselector __attribute__ ((unused )))
@@ -5201,25 +5201,26 @@ void PREFIX (change_team) (caf_team_t *team, int coselector __attribute__ ((unus
5201
5201
MPI_Comm * tmp_comm ;
5202
5202
5203
5203
MPI_Barrier (CAF_COMM_WORLD );
5204
- tmp_team = (void * )* team ;
5204
+ tmp_list = (struct caf_teams_list * )* team ;
5205
+ tmp_team = (void * )tmp_list -> team ;
5205
5206
tmp_comm = (MPI_Comm * )tmp_team ;
5206
5207
5207
5208
tmp_used = (caf_used_teams_list * )calloc (1 ,sizeof (caf_used_teams_list ));
5208
5209
tmp_used -> prev = used_teams ;
5209
5210
5210
- /* We need to look in the teams_list and find the appropriate element.
5211
- * This is not efficient but can be easily fixed in the future.
5212
- * Instead of keeping track of the communicator in the compiler
5213
- * we should keep track of the caf_teams_list element associated with it. */
5211
+ /* /\* We need to look in the teams_list and find the appropriate element. */
5212
+ /* * This is not efficient but can be easily fixed in the future. */
5213
+ /* * Instead of keeping track of the communicator in the compiler */
5214
+ /* * we should keep track of the caf_teams_list element associated with it. *\/ */
5214
5215
5215
- tmp_list = teams_list ;
5216
+ /* tmp_list = teams_list; */
5216
5217
5217
- while (tmp_list )
5218
- {
5219
- if (tmp_list -> team == tmp_team )
5220
- break ;
5221
- tmp_list = tmp_list -> prev ;
5222
- }
5218
+ /* while(tmp_list) */
5219
+ /* { */
5220
+ /* if(tmp_list->team == tmp_team) */
5221
+ /* break; */
5222
+ /* tmp_list = tmp_list->prev; */
5223
+ /* } */
5223
5224
5224
5225
if (tmp_list == NULL )
5225
5226
caf_runtime_error ("CHANGE TEAM called on a non-existing team" );
0 commit comments