Skip to content
Snippets Groups Projects
Commit dbc800ca authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

use 's' instead of '&e->sched'.

parent aee41060
Branches
Tags
2 merge requests!136Master,!113Local variable cleanup
......@@ -375,10 +375,10 @@ void engine_addtasks_send(struct engine *e, struct cell *ci, struct cell *cj) {
/* Create the tasks. */
struct task *t_xv =
scheduler_addtask(&e->sched, task_type_send, task_subtype_none,
scheduler_addtask(s, task_type_send, task_subtype_none,
2 * ci->tag, 0, ci, cj, 0);
struct task *t_rho =
scheduler_addtask(&e->sched, task_type_send, task_subtype_none,
scheduler_addtask(s, task_type_send, task_subtype_none,
2 * ci->tag + 1, 0, ci, cj, 0);
/* The send_rho task depends on the cell's ghost task. */
......@@ -422,10 +422,10 @@ void engine_addtasks_recv(struct engine *e, struct cell *c, struct task *t_xv,
/* Create the tasks. */
t_xv = c->recv_xv =
scheduler_addtask(&e->sched, task_type_recv, task_subtype_none,
scheduler_addtask(s, task_type_recv, task_subtype_none,
2 * c->tag, 0, c, NULL, 0);
t_rho = c->recv_rho =
scheduler_addtask(&e->sched, task_type_recv, task_subtype_none,
scheduler_addtask(s, task_type_recv, task_subtype_none,
2 * c->tag + 1, 0, c, NULL, 0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment