Skip to content
Snippets Groups Projects
Commit b1fa2d2a authored by James Willis's avatar James Willis
Browse files

Link groups on remote node that has a higher root than on the remote node.

parent bb7c8eb0
No related branches found
No related tags found
1 merge request!543Fof
...@@ -1047,9 +1047,10 @@ void fof_search_foreign_cells(struct space *s) { ...@@ -1047,9 +1047,10 @@ void fof_search_foreign_cells(struct space *s) {
s->fof_data.group_index[local_root - node_offset] = fof_recv[i].root_i; s->fof_data.group_index[local_root - node_offset] = fof_recv[i].root_i;
//message("Rank: %d Particle %lld found new group with root: %d, previous group: %d, i=%d, j=%d, k=%d", engine_rank, gp->id_or_neg_offset, fof_recv[i].root_i, local_root, i,j,k); message("Rank: %d Particle %lld found new group with root: %d, previous group: %d", engine_rank, s->gparts[local_root].id_or_neg_offset, fof_recv[i].root_i, local_root);
link_count++; link_count++;
message("Rank: %d New group: %d", engine_rank, fof_find(local_root, s->fof_data.group_index));
} }
...@@ -1108,6 +1109,15 @@ void fof_search_foreign_cells(struct space *s) { ...@@ -1108,6 +1109,15 @@ void fof_search_foreign_cells(struct space *s) {
} }
} }
} }
else {
message("Root on other node needs updating. Foreign root: %d, local root: %d", fof_recv[i].root_i, local_root);
fof_send[double_link_count].foreign_pid = fof_recv[i].root_i;
fof_send[double_link_count].root_i = local_root;
double_link_count++;
}
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment