diff --git a/src/cell.c b/src/cell.c index f0668f48f034c5deb99f236fe3af902ffd36dc47..c7b992bb72f5431c267c19fad6355d31c663b20b 100644 --- a/src/cell.c +++ b/src/cell.c @@ -1062,8 +1062,6 @@ void cell_drift(struct cell *c, const struct engine *e) { /* Drift... */ drift_part(p, xp, dt, timeBase, ti_old, ti_current); - p->ti_old = ti_current; - /* Compute (square of) motion since last cell construction */ const float dx2 = xp->x_diff[0] * xp->x_diff[0] + xp->x_diff[1] * xp->x_diff[1] + diff --git a/src/hydro/Gadget2/hydro.h b/src/hydro/Gadget2/hydro.h index 66c6998057e0f3bfeab2c1babe53315b61707192..157893bc9e27806d2b97ac5f5a81d0f6fbb1c589 100644 --- a/src/hydro/Gadget2/hydro.h +++ b/src/hydro/Gadget2/hydro.h @@ -212,7 +212,6 @@ __attribute__((always_inline)) INLINE static float hydro_compute_timestep( __attribute__((always_inline)) INLINE static void hydro_first_init_part( struct part *restrict p, struct xpart *restrict xp) { - p->ti_old = 0; p->ti_begin = 0; p->ti_end = 0; xp->v_full[0] = p->v[0]; diff --git a/src/hydro/Gadget2/hydro_part.h b/src/hydro/Gadget2/hydro_part.h index 15545f4800342997d77f4ed27b498fbf59364cb1..4bbbf0aede12b692b15442b71a03ffbbcf2f8378 100644 --- a/src/hydro/Gadget2/hydro_part.h +++ b/src/hydro/Gadget2/hydro_part.h @@ -71,8 +71,6 @@ struct part { /* Particle time of end of time-step. */ int ti_end; - int ti_old; - /* Particle density. */ float rho;