From deca7c795411975e3bfb11cd6934ace768be772b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 14 Oct 2020 14:43:54 +1100 Subject: Cleanup: spelling --- source/blender/simulation/intern/implicit_blender.c | 6 +++--- source/blender/simulation/intern/implicit_eigen.cpp | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'source/blender/simulation/intern') diff --git a/source/blender/simulation/intern/implicit_blender.c b/source/blender/simulation/intern/implicit_blender.c index 9bfe77d5e60..df8c4782acd 100644 --- a/source/blender/simulation/intern/implicit_blender.c +++ b/source/blender/simulation/intern/implicit_blender.c @@ -1740,7 +1740,7 @@ BLI_INLINE float fbstar_jacobi(float length, float L, float kb, float cb) return -kb * fbderiv(length, L); } -/* calculate elonglation */ +/* calculate elongation */ BLI_INLINE bool spring_length(Implicit_Data *data, int i, int j, @@ -1810,7 +1810,7 @@ bool SIM_mass_spring_force_spring_linear(Implicit_Data *data, float f[3], dfdx[3][3], dfdv[3][3]; float damping = 0; - /* calculate elonglation */ + /* calculate elongation */ spring_length(data, i, j, extent, dir, &length, vel); /* This code computes not only the force, but also its derivative. @@ -1860,7 +1860,7 @@ bool SIM_mass_spring_force_spring_bending( { float extent[3], length, dir[3], vel[3]; - /* calculate elonglation */ + /* calculate elongation */ spring_length(data, i, j, extent, dir, &length, vel); if (length < restlen) { diff --git a/source/blender/simulation/intern/implicit_eigen.cpp b/source/blender/simulation/intern/implicit_eigen.cpp index 75103452471..b30a46909b9 100644 --- a/source/blender/simulation/intern/implicit_eigen.cpp +++ b/source/blender/simulation/intern/implicit_eigen.cpp @@ -950,7 +950,7 @@ BLI_INLINE float fbstar_jacobi(float length, float L, float kb, float cb) } } -/* calculate elonglation */ +/* calculate elongation */ BLI_INLINE bool spring_length(Implicit_Data *data, int i, int j, @@ -1014,7 +1014,7 @@ bool SIM_mass_spring_force_spring_linear(Implicit_Data *data, { float extent[3], length, dir[3], vel[3]; - /* calculate elonglation */ + /* calculate elongation */ spring_length(data, i, j, extent, dir, &length, vel); if (length > restlen || no_compress) { @@ -1026,7 +1026,7 @@ bool SIM_mass_spring_force_spring_linear(Implicit_Data *data, } mul_v3_v3fl(f, dir, stretch_force); - /* Ascher & Boxman, p.21: Damping only during elonglation + /* Ascher & Boxman, p.21: Damping only during elongation * something wrong with it... */ madd_v3_v3fl(f, dir, damping * dot_v3v3(vel, dir)); @@ -1075,7 +1075,7 @@ bool SIM_mass_spring_force_spring_bending(Implicit_Data *data, { float extent[3], length, dir[3], vel[3]; - /* calculate elonglation */ + /* calculate elongation */ spring_length(data, i, j, extent, dir, &length, vel); if (length < restlen) { @@ -1468,7 +1468,7 @@ bool SIM_mass_spring_force_spring_goal(Implicit_Data *data, if (length > ALMOST_ZERO) { mul_v3_v3fl(f, dir, stiffness * length); - /* Ascher & Boxman, p.21: Damping only during elonglation + /* Ascher & Boxman, p.21: Damping only during elongation * something wrong with it... */ madd_v3_v3fl(f, dir, damping * dot_v3v3(vel, dir)); -- cgit v1.2.3