Commit 85612470 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Also update the prediction set interface fot Gizmo.

parent a3d0c6bc
......@@ -291,13 +291,13 @@ __attribute__((always_inline)) INLINE static void hydro_predict_extra(
else
p->h *= expf(w1);
const float w2 = -hydro_dimension * w1;
const float w2 = -hydro_dimension * w1;
if (fabsf(w2) < 0.2f) {
p->primitives.rho *= approx_expf(w2);
} else {
p->primitives.rho *= expf(w2);
}
p->primitives.v[0] += (p->a_hydro[0] + p->gravity.old_a[0]) * dt;
p->primitives.v[1] += (p->a_hydro[1] + p->gravity.old_a[1]) * dt;
p->primitives.v[2] += (p->a_hydro[2] + p->gravity.old_a[2]) * dt;
......
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