Skip to content
Snippets Groups Projects
Commit a11f624a authored by lhausamm's avatar lhausamm Committed by Loic Hausammann
Browse files

Write particle at first step

parent 8d85de7f
No related branches found
No related tags found
1 merge request!502Logger
...@@ -145,6 +145,7 @@ __attribute__((always_inline)) INLINE static void gravity_init_gpart( ...@@ -145,6 +145,7 @@ __attribute__((always_inline)) INLINE static void gravity_init_gpart(
gp->a_grav[0] = 0.f; gp->a_grav[0] = 0.f;
gp->a_grav[1] = 0.f; gp->a_grav[1] = 0.f;
gp->a_grav[2] = 0.f; gp->a_grav[2] = 0.f;
gp->last_output = SHRT_MAX;
#ifdef SWIFT_GRAVITY_FORCE_CHECKS #ifdef SWIFT_GRAVITY_FORCE_CHECKS
gp->potential_PM = 0.f; gp->potential_PM = 0.f;
......
...@@ -752,6 +752,7 @@ __attribute__((always_inline)) INLINE static void hydro_first_init_part( ...@@ -752,6 +752,7 @@ __attribute__((always_inline)) INLINE static void hydro_first_init_part(
xp->a_grav[1] = 0.f; xp->a_grav[1] = 0.f;
xp->a_grav[2] = 0.f; xp->a_grav[2] = 0.f;
xp->entropy_full = p->entropy; xp->entropy_full = p->entropy;
xp->last_output = SHRT_MAX;
hydro_reset_acceleration(p); hydro_reset_acceleration(p);
hydro_init_part(p, NULL); hydro_init_part(p, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment