From ce273aee084fd367245d20a15b307d4ad99584d8 Mon Sep 17 00:00:00 2001 From: Daniel Genrich Date: Fri, 7 Aug 2009 13:19:17 +0000 Subject: 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 --- intern/smoke/intern/FLUID_3D_SOLVERS.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'intern') 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; } ////////////////////////////////////////////////////////////////////// -- cgit v1.2.3