diff --git a/src/cell.c b/src/cell.c index d685a69d477cc9bc9641f296b3aadd98abb9ed56..a7914a8a5a20d596a5516d61959e5c826c737b15 100644 --- a/src/cell.c +++ b/src/cell.c @@ -3659,6 +3659,11 @@ void cell_drift_gpart(struct cell *c, const struct engine *e, int force) { continue; } } + + /* Init gravity force fields. */ + if (gpart_is_active(gp, e)) { + gravity_init_gpart(gp); + } } /* Loop over all the star particles in the cell */