[Bf-blender-cvs] [ae162f6] master: Added a comment and use the new CG solver as the "official" version now.
Lukas Tönne
noreply at git.blender.org
Tue Jan 20 09:49:35 CET 2015
Commit: ae162f61e7d36c34babcfa1e8c4a63050c32b549
Author: Lukas Tönne
Date: Thu Sep 4 09:26:40 2014 +0200
Branches: master
https://developer.blender.org/rBae162f61e7d36c34babcfa1e8c4a63050c32b549
Added a comment and use the new CG solver as the "official" version now.
===================================================================
M source/blender/blenkernel/intern/implicit.c
===================================================================
diff --git a/source/blender/blenkernel/intern/implicit.c b/source/blender/blenkernel/intern/implicit.c
index 689a0f7..25f36e8 100644
--- a/source/blender/blenkernel/intern/implicit.c
+++ b/source/blender/blenkernel/intern/implicit.c
@@ -761,7 +761,7 @@ DO_INLINE void filter(lfVector *V, fmatrix3x3 *S)
}
}
-#if 0
+#if 0 /* this version of the CG algorithm does not work very well with partial constraints (where S has non-zero elements) */
static int cg_filtered(lfVector *ldV, fmatrix3x3 *lA, lfVector *lB, lfVector *z, fmatrix3x3 *S)
{
// Solves for unknown X in equation AX=B
@@ -826,7 +826,8 @@ static int cg_filtered(lfVector *ldV, fmatrix3x3 *lA, lfVector *lB, lfVector *z
return conjgrad_loopcount<conjgrad_looplimit; // true means we reached desired accuracy in given time - ie stable
}
-#else
+#endif
+
static int cg_filtered(lfVector *ldV, fmatrix3x3 *lA, lfVector *lB, lfVector *z, fmatrix3x3 *S)
{
// Solves for unknown X in equation AX=B
@@ -892,7 +893,6 @@ static int cg_filtered(lfVector *ldV, fmatrix3x3 *lA, lfVector *lB, lfVector *z,
return conjgrad_loopcount < conjgrad_looplimit; // true means we reached desired accuracy in given time - ie stable
}
-#endif
#if 0
// block diagonalizer
More information about the Bf-blender-cvs
mailing list