Add cell links for gravity tasks
Add links for gravity tasks so that we can discover these from cells.
Also expunge external_gravity from cell.h.
Merge request reports
Activity
mentioned in merge request !267 (merged)
1875 1887 1876 1888 /* Allocate the list of cell-task links. The maximum number of links 1877 1889 is the number of cells (s->tot_cells) times the number of neighbours (27) 1878 times the number of interaction types (2, density and force). */ 1890 times the number of interaction types (2, density and force, grav). */ 1879 1891 if (e->links != NULL) free(e->links); 1875 1887 1876 1888 /* Allocate the list of cell-task links. The maximum number of links 1877 1889 is the number of cells (s->tot_cells) times the number of neighbours (27) 1878 times the number of interaction types (2, density and force). */ 1890 times the number of interaction types (2, density and force, grav). */ 1879 1891 if (e->links != NULL) free(e->links); Added 1 commit:
- 7f64ed3b - Change allocations of size_links as suggested by Matthieu
Added 1 commit:
- 6f12fe19 - Also update the counter of gravity self/pair tasks when linking them.
Added 1 commit:
- babf1c74 - Add the gravity link in 'engine_count_and_link_tasks()'
Added 1 commit:
- 59d5eb87 - Added temporary variables in 'engine_count_and_link_tasks()'
Reassigned to @pdraper
mentioned in commit cd34c3b6
Spoke too soon, came across a missing (re)initialisation which is fixed in e90dd24b. Without that the Multitype test gets stuck in a loop when iterating the grav links.
Please register or sign in to reply