diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2009-08-07 17:19:17 +0400 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2009-08-07 17:19:17 +0400 |
commit | ce273aee084fd367245d20a15b307d4ad99584d8 (patch) | |
tree | d0f792e1007cb8473215c8f45807173663e442bc /intern/smoke | |
parent | 1311b2f78bd69bfa73c2b79aaf465b37b1516618 (diff) |
smoke:
- Bugfix: a bit too fast ;-) Better do it right too (problem with res > 150)
- fixing high res view button which disappeared sometimes
- fixing tooltip
Diffstat (limited to 'intern/smoke')
-rw-r--r-- | intern/smoke/intern/FLUID_3D_SOLVERS.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/smoke/intern/FLUID_3D_SOLVERS.cpp b/intern/smoke/intern/FLUID_3D_SOLVERS.cpp index c6142bbb4bc..51929e1194b 100644 --- a/intern/smoke/intern/FLUID_3D_SOLVERS.cpp +++ b/intern/smoke/intern/FLUID_3D_SOLVERS.cpp @@ -85,7 +85,7 @@ void FLUID_3D::solvePressurePre(float* field, float* b, unsigned char* skip) //while ((i < _iterations) && (deltaNew > eps*delta0)) float maxR = 2.0f * eps; // while (i < _iterations) - while ((i < _iterations) && (maxR > eps)) + while ((i < _iterations) && (maxR > 0.001*eps)) { // (s) q = Ad (p) index = _slabSize + _xRes + 1; @@ -183,7 +183,7 @@ void FLUID_3D::solvePressurePre(float* field, float* b, unsigned char* skip) // i = i + 1 i++; } - cout << i << " iterations converged to " << maxR << endl; + // cout << i << " iterations converged to " << sqrt(maxR) << endl; } ////////////////////////////////////////////////////////////////////// @@ -330,7 +330,7 @@ void FLUID_3D::solvePressure(float* field, float* b, unsigned char* skip) // i = i + 1 i++; } - cout << i << " iterations converged to " << maxR << endl; + // cout << i << " iterations converged to " << maxR << endl; } ////////////////////////////////////////////////////////////////////// |