Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-10-14 06:43:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-14 06:43:54 +0300
commitdeca7c795411975e3bfb11cd6934ace768be772b (patch)
treeed90e9acb30ea57510edf3dd4228ff93074f0f9f /source/blender/simulation
parent2cc7be3e4907a0f9ed508b278cae987b35b2f503 (diff)
Cleanup: spelling
Diffstat (limited to 'source/blender/simulation')
-rw-r--r--source/blender/simulation/intern/implicit_blender.c6
-rw-r--r--source/blender/simulation/intern/implicit_eigen.cpp10
2 files changed, 8 insertions, 8 deletions
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));