tadd precaution on instabilities with backwards finite differences - slidergrid… | |
git clone git://src.adamsgaard.dk/slidergrid | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit c3e0b8d528cae8ad2e8b04ff4ea49ca565c50504 | |
parent 2c8a1eb434b536ba5a6bd764c8a40ff975e78a97 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 23 Mar 2016 12:13:49 -0700 | |
add precaution on instabilities with backwards finite differences | |
Diffstat: | |
M slidergrid/slider.c | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git a/slidergrid/slider.c b/slidergrid/slider.c | |
t@@ -162,6 +162,7 @@ void slider_displacement(slider* s1, const slider s2, | |
subtract_float3(dist_future, dist0), 2.0); | |
// Get displacement change from previous and current inter-slider distance | |
+ // this can cause instabilities when only elasticity is included | |
//const Float3 ddist = subtract_float3(dist, dist0); | |
//if (iteration == 0) |