Commit 7d16b4ae authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

only drift the cells that are being sent.

parent a0106530
...@@ -1745,9 +1745,9 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) { ...@@ -1745,9 +1745,9 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
if (l == NULL) error("Missing link to send_xv task."); if (l == NULL) error("Missing link to send_xv task.");
scheduler_activate(s, l->t); scheduler_activate(s, l->t);
/* Drift the cell which will be sent at the level at which it is sent, /* Drift the cell which will be sent; note that not all sent
i.e. drift the cell specified in the send task (l->t) itself. */ particles will be drifted, only those that are needed. */
cell_activate_drift_part(l->t->ci, s); cell_activate_drift_part(cj, s);
if (cell_is_active(cj, e)) { if (cell_is_active(cj, e)) {
struct link *l = NULL; struct link *l = NULL;
...@@ -1802,9 +1802,9 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) { ...@@ -1802,9 +1802,9 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
if (l == NULL) error("Missing link to send_xv task."); if (l == NULL) error("Missing link to send_xv task.");
scheduler_activate(s, l->t); scheduler_activate(s, l->t);
/* Drift the cell which will be sent at the level at which it is sent, /* Drift the cell which will be sent; note that not all sent
i.e. drift the cell specified in the send task (l->t) itself. */ particles will be drifted, only those that are needed. */
cell_activate_drift_part(l->t->ci, s); cell_activate_drift_part(ci, s);
if (cell_is_active(ci, e)) { if (cell_is_active(ci, e)) {
......
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