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

Corrected mistake in the default implementation.

parent 984a96e0
Branches
Tags
2 merge requests!136Master,!90Improved multi-timestep SPH
......@@ -35,7 +35,7 @@ __attribute__((always_inline)) INLINE static float hydro_compute_timestep(
? fabsf(const_max_u_change * p->u / p->force.u_dt)
: FLT_MAX;
return fminf(dt_cfl, fminf(dt_h_change, dt_u_change));
return fminf(dt_cfl, dt_u_change);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment