tForce length insted of vector in es_dot - sphere - GPU-based 3D discrete eleme… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 8f77eaf4a0ec03724a4555b4b44d0291194a237d | |
parent fd503b464e23719accae794bba0b3fcf562bd20a | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 9 Oct 2012 13:58:14 +0200 | |
Force length insted of vector in es_dot | |
Diffstat: | |
M src/contactmodels.cuh | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/src/contactmodels.cuh b/src/contactmodels.cuh | |
t@@ -386,7 +386,7 @@ __device__ void contactLinear(Float3* F, Float3* T, | |
// The energy lost from the tangential spring is dissipated as heat | |
//*es_dot += -dot(vel_t_ab, f_t); | |
//*es_dot += length(delta_t0 - delta_t) * devC_k_t / devC_dt; // Seen in… | |
- *es_dot += length(delta_t0 - delta_t) * f_t / devC_dt; | |
+ *es_dot += length(delta_t0 - delta_t) * length(f_t) / devC_dt; | |
} else { // Static case | |