Skip to content
Snippets Groups Projects
Commit 010c1169 authored by Bert Vandenbroucke's avatar Bert Vandenbroucke
Browse files

Removed hydro_velocities from Makefile.am. Removed some more mass fluxes and...

Removed hydro_velocities from Makefile.am. Removed some more mass fluxes and code that depends on masses changing.
parent 48f56b7d
No related branches found
No related tags found
1 merge request!588Gizmo mfm clean
......@@ -106,7 +106,6 @@ nobase_noinst_HEADERS = align.h approx_math.h atomic.h barrier.h cycle.h error.h
hydro/GizmoMFM/hydro_slope_limiters_face.h \
hydro/GizmoMFM/hydro_slope_limiters.h \
hydro/GizmoMFM/hydro_unphysical.h \
hydro/GizmoMFM/hydro_velocities.h \
hydro/Shadowswift/hydro_debug.h \
hydro/Shadowswift/hydro_gradients.h hydro/Shadowswift/hydro.h \
hydro/Shadowswift/hydro_iact.h \
......
......@@ -614,8 +614,7 @@ __attribute__((always_inline)) INLINE static void hydro_kick_extra(
float a_grav[3];
/* Update conserved variables. */
p->conserved.mass += p->conserved.flux.mass * dt;
/* Update conserved variables (note: the mass does not change). */
p->conserved.momentum[0] += p->conserved.flux.momentum[0] * dt;
p->conserved.momentum[1] += p->conserved.flux.momentum[1] * dt;
p->conserved.momentum[2] += p->conserved.flux.momentum[2] * dt;
......@@ -665,9 +664,6 @@ __attribute__((always_inline)) INLINE static void hydro_kick_extra(
a_grav[1] = p->gpart->a_grav[1];
a_grav[2] = p->gpart->a_grav[2];
/* Make sure the gpart knows the mass has changed. */
p->gpart->mass = p->conserved.mass;
/* Kick the momentum for half a time step */
/* Note that this also affects the particle movement, as the velocity for
the particles is set after this. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment