Commit 8bdf06be authored by Peter W. Draper's avatar Peter W. Draper
Browse files

External gravity (multi-dt) runs again, but the time step is still incorrect

parent 56e1e2ae
......@@ -1249,8 +1249,9 @@ void engine_make_external_gravity_tasks(struct engine *e) {
if (ci->nodeID != nodeID) continue;
/* If the cells is local build a self-interaction */
scheduler_addtask(sched, task_type_self, task_subtype_external_grav, 0, 0,
ci, NULL, 0);
ci->grav_external = scheduler_addtask(sched, task_type_self,
task_subtype_external_grav, 0, 0,
ci, NULL, 0);
}
}
......@@ -2120,11 +2121,16 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
if (t->ci->ti_end_min <= ti_end) scheduler_activate(s, t);
}
/* Any other single-cell task? */
else {
/* Set this task's skip. */
/* Init? */
else if (t->type == task_type_init) {
if (t->ci->ti_end_min <= ti_end) scheduler_activate(s, t);
}
/* Tasks with no cells should not be skipped? */
else if (t->type == task_type_grav_gather_m ||
t->type == task_type_grav_fft) {
scheduler_activate(s, t);
}
}
}
......
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