Commit e9d7520b authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Code formatting

parent 4e460da8
......@@ -907,7 +907,7 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
if (l == NULL) error("Missing link to send_xv task.");
scheduler_activate(s, l->t);
if(cj->super->drift)
if (cj->super->drift)
scheduler_activate(s, cj->super->drift);
else
error("Drift task missing !");
......@@ -939,7 +939,7 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
if (l == NULL) error("Missing link to send_xv task.");
scheduler_activate(s, l->t);
if(ci->super->drift)
if (ci->super->drift)
scheduler_activate(s, ci->super->drift);
else
error("Drift task missing !");
......
......@@ -675,9 +675,9 @@ void engine_addtasks_send(struct engine *e, struct cell *ci, struct cell *cj,
/* Create the tasks and their dependencies? */
if (t_xv == NULL) {
if(ci->super->drift == NULL)
ci->super->drift = scheduler_addtask(s, task_type_drift, task_subtype_none, 0, 0,
ci->super, NULL, 0);
if (ci->super->drift == NULL)
ci->super->drift = scheduler_addtask(
s, task_type_drift, task_subtype_none, 0, 0, ci->super, NULL, 0);
t_xv = scheduler_addtask(s, task_type_send, task_subtype_none,
4 * ci->tag, 0, ci, cj, 0);
......@@ -2067,7 +2067,7 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
if (l == NULL) error("Missing link to send_xv task.");
scheduler_activate(s, l->t);
if(cj->super->drift)
if (cj->super->drift)
scheduler_activate(s, cj->super->drift);
else
error("Drift task missing !");
......@@ -2099,7 +2099,7 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
if (l == NULL) error("Missing link to send_xv task.");
scheduler_activate(s, l->t);
if(ci->super->drift)
if (ci->super->drift)
scheduler_activate(s, ci->super->drift);
else
error("Drift task missing !");
......
......@@ -1054,7 +1054,8 @@ void *runner_main(void *data) {
#ifdef SWIFT_DEBUG_CHECKS
#ifndef WITH_MPI
if (cj == NULL) { /* self */
if (!cell_is_active(ci, e) && t->type != task_type_sort && t->type != task_type_send && t->type != task_type_recv)
if (!cell_is_active(ci, e) && t->type != task_type_sort &&
t->type != task_type_send && t->type != task_type_recv)
error(
"Task (type='%s/%s') should have been skipped ti_current=%d "
"c->ti_end_min=%d",
......@@ -1073,12 +1074,12 @@ void *runner_main(void *data) {
} else { /* pair */
if (!cell_is_active(ci, e) && !cell_is_active(cj, e))
if(t->type != task_type_send && t->type != task_type_recv)
if (t->type != task_type_send && t->type != task_type_recv)
error(
"Task (type='%s/%s') should have been skipped ti_current=%d "
"ci->ti_end_min=%d cj->ti_end_min=%d",
taskID_names[t->type], subtaskID_names[t->subtype], e->ti_current,
ci->ti_end_min, cj->ti_end_min);
taskID_names[t->type], subtaskID_names[t->subtype],
e->ti_current, ci->ti_end_min, cj->ti_end_min);
}
#endif
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment