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
......@@ -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;
}
/**
......
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