@@ -1623,7 +1623,7 @@ PREFIX (send) (caf_token_t token, size_t offset, int image_index,
1623
1623
gfc_descriptor_t * dest ,
1624
1624
caf_vector_t * dst_vector __attribute__ ((unused )),
1625
1625
gfc_descriptor_t * src , int dst_kind , int src_kind ,
1626
- bool mrt , int * stat )
1626
+ bool mrt , int * stat , void * team )
1627
1627
{
1628
1628
/* FIXME: Implement vector subscripts, type conversion and check whether
1629
1629
string-kind conversions are permitted.
@@ -4832,7 +4832,7 @@ void PREFIX (form_team) (int team_id, caf_team_t *team, int index __attribute__
4832
4832
teams_list = tmp ;
4833
4833
teams_list -> team_id = team_id ;
4834
4834
teams_list -> team = newcomm ;
4835
- * team = newcomm ;
4835
+ * team = tmp ;
4836
4836
}
4837
4837
4838
4838
void PREFIX (change_team ) (caf_team_t * team , int coselector __attribute__ ((unused )))
@@ -4843,25 +4843,26 @@ void PREFIX (change_team) (caf_team_t *team, int coselector __attribute__ ((unus
4843
4843
MPI_Comm * tmp_comm ;
4844
4844
4845
4845
MPI_Barrier (CAF_COMM_WORLD );
4846
- tmp_team = (void * )* team ;
4846
+ tmp_list = (struct caf_teams_list * )* team ;
4847
+ tmp_team = (void * )tmp_list -> team ;
4847
4848
tmp_comm = (MPI_Comm * )tmp_team ;
4848
4849
4849
4850
tmp_used = (caf_used_teams_list * )calloc (1 ,sizeof (caf_used_teams_list ));
4850
4851
tmp_used -> prev = used_teams ;
4851
4852
4852
- /* We need to look in the teams_list and find the appropriate element.
4853
- * This is not efficient but can be easily fixed in the future.
4854
- * Instead of keeping track of the communicator in the compiler
4855
- * we should keep track of the caf_teams_list element associated with it. */
4853
+ /* /\* We need to look in the teams_list and find the appropriate element. */
4854
+ /* * This is not efficient but can be easily fixed in the future. */
4855
+ /* * Instead of keeping track of the communicator in the compiler */
4856
+ /* * we should keep track of the caf_teams_list element associated with it. *\/ */
4856
4857
4857
- tmp_list = teams_list ;
4858
+ /* tmp_list = teams_list; */
4858
4859
4859
- while (tmp_list )
4860
- {
4861
- if (tmp_list -> team == tmp_team )
4862
- break ;
4863
- tmp_list = tmp_list -> prev ;
4864
- }
4860
+ /* while(tmp_list) */
4861
+ /* { */
4862
+ /* if(tmp_list->team == tmp_team) */
4863
+ /* break; */
4864
+ /* tmp_list = tmp_list->prev; */
4865
+ /* } */
4865
4866
4866
4867
if (tmp_list == NULL )
4867
4868
caf_runtime_error ("CHANGE TEAM called on a non-existing team" );
0 commit comments