Commit 7b19e1e9 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Do not access the hydro particle mass in cell.c. Some schemes do not carry masses

parent ace81ea0
...@@ -6161,7 +6161,7 @@ struct spart *cell_spawn_new_spart_from_part(struct engine *e, struct cell *c, ...@@ -6161,7 +6161,7 @@ struct spart *cell_spawn_new_spart_from_part(struct engine *e, struct cell *c,
gp->time_bin = sp->time_bin; gp->time_bin = sp->time_bin;
/* Synchronize masses, positions and velocities */ /* Synchronize masses, positions and velocities */
sp->mass = p->mass; sp->mass = hydro_get_mass(p);
sp->x[0] = p->x[0]; sp->x[0] = p->x[0];
sp->x[1] = p->x[1]; sp->x[1] = p->x[1];
sp->x[2] = p->x[2]; sp->x[2] = p->x[2];
......
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