Commit 9817bc32 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Properly collect the number of particles updated

parent 629bb48c
......@@ -929,6 +929,7 @@ void runner_dokick(struct runner *r, struct cell *c, int timer) {
struct cell *cp = c->progeny[k];
runner_dokick(r, cp, 0);
updated += cp->updated;
ekin += cp->ekin;
epot += cp->epot;
mom[0] += cp->mom[0];
......@@ -943,6 +944,7 @@ void runner_dokick(struct runner *r, struct cell *c, int timer) {
}
/* Store the values. */
c->updated = updated;
c->ekin = ekin;
c->epot = epot;
c->mom[0] = mom[0];
......
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