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

Set drifted velocity values for zero mass particles in gizmo.

parent 8d48e6aa
No related branches found
No related tags found
1 merge request!474Make the hydro schemes compute the dirfted velocities themselves when collecting statistics.
......@@ -773,6 +773,10 @@ __attribute__((always_inline)) INLINE static void hydro_get_drifted_velocities(
p->conserved.flux.momentum[1] * dt / p->conserved.mass;
v[2] = p->primitives.v[2] +
p->conserved.flux.momentum[2] * dt / p->conserved.mass;
} else {
v[0] = p->primitives.v[0];
v[1] = p->primitives.v[1];
v[2] = p->primitives.v[2];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment