Introduction
Introduction Statistics Contact Development Disclaimer Help
tremove redundant braces - slidergrid - grid of elastic sliders on a frictional…
git clone git://src.adamsgaard.dk/slidergrid
Log
Files
Refs
README
LICENSE
---
commit e9b6a38b8abbc6939db719054f932214fb1fba4e
parent bbe4664bdeb5aaaabec87ef1036e9ff95562e00d
Author: Anders Damsgaard <[email protected]>
Date: Tue, 15 Mar 2016 14:20:14 -0700
remove redundant braces
Diffstat:
M slider.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/slider.c b/slider.c
t@@ -16,11 +16,10 @@ void update_kinematics(slider s, Float dt, long int iterat…
s.acc = divide_float3_scalar(s.force, s.mass);
Float3 acc0;
- if (iteration == 0) {
+ if (iteration == 0)
acc0 = make_float3(0., 0., 0.);
- } else {
+ else
acc0 = s.acc;
- }
const Float3 dacc_dt = make_float3(
(s.acc.x - acc0.x)/dt,
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.