Skip to content
Snippets Groups Projects
Commit f5573438 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Correctly initialise the signal velocity of the SPH particles in the Minimal...

Correctly initialise the signal velocity of the SPH particles in the Minimal and Pressure-Entropy cases.
parent 1da074ae
No related branches found
No related tags found
No related merge requests found
......@@ -279,7 +279,7 @@ __attribute__((always_inline)) INLINE static void hydro_reset_acceleration(
/* Reset the time derivatives. */
p->u_dt = 0.0f;
p->force.h_dt = 0.0f;
p->force.v_sig = p->force.soundspeed;
p->force.v_sig = 0.0f;
}
/**
......
......@@ -308,7 +308,7 @@ __attribute__((always_inline)) INLINE static void hydro_reset_acceleration(
p->force.h_dt = 0.0f;
/* Reset maximal signal velocity */
p->force.v_sig = p->force.soundspeed;
p->force.v_sig = 0.0f;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment