Skip to content
Snippets Groups Projects
Commit 37bd181e authored by Loic Hausammann's avatar Loic Hausammann
Browse files

create mpi stars task if only hydro

parent 7d6c99a8
Branches
Tags
3 merge requests!745Rewrite of MPI loops - Add stellar feedback loops,!744Mpi stars2 matthieu,!700Stars smoothing length over MPI
......@@ -222,11 +222,19 @@ void engine_addtasks_send_stars(struct engine *e, struct cell *ci,
const int nodeID = cj->nodeID;
/* Check if any of the density tasks are for the target node. */
for (l = ci->stars.density; l != NULL; l = l->next)
for (l = ci->hydro.density; l != NULL; l = l->next)
if (l->t->ci->nodeID == nodeID ||
(l->t->cj != NULL && l->t->cj->nodeID == nodeID))
break;
/* Check for stars now */
if (l == NULL) {
for (l = ci->stars.density; l != NULL; l = l->next)
if (l->t->ci->nodeID == nodeID ||
(l->t->cj != NULL && l->t->cj->nodeID == nodeID))
break;
}
/* If so, attach send tasks. */
if (l != NULL) {
/* Get the task if created in hydro part */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment