Skip to content
Snippets Groups Projects
Commit 08f16ff9 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Protect t->ci as well

parent b86d23cd
No related branches found
No related tags found
No related merge requests found
...@@ -718,8 +718,8 @@ static void scheduler_splittask_hydro(struct task *t, struct scheduler *s) { ...@@ -718,8 +718,8 @@ static void scheduler_splittask_hydro(struct task *t, struct scheduler *s) {
t->ci = ci->progeny[csp->pairs[0].pid]; t->ci = ci->progeny[csp->pairs[0].pid];
t->cj = cj->progeny[csp->pairs[0].pjd]; t->cj = cj->progeny[csp->pairs[0].pjd];
cell_set_flag(t->ci, cell_flag_has_tasks); if (t->ci != NULL) cell_set_flag(t->ci, cell_flag_has_tasks);
if (t->cj != NULL)cell_set_flag(t->cj, cell_flag_has_tasks); if (t->cj != NULL) cell_set_flag(t->cj, cell_flag_has_tasks);
t->flags = csp->pairs[0].sid; t->flags = csp->pairs[0].sid;
for (int k = 1; k < csp->count; k++) { for (int k = 1; k < csp->count; k++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment