Smoke: fixing some compile warning reported by Ton and one compile erro for gcc 4...
[blender.git] / intern / smoke / intern / FLUID_3D_SOLVERS.cpp
index b628d48b943ebf4465eb963d760685b65a908d8b..5fd8f72d79d7145e627b0f3a65893c03fa75b49a 100644 (file)
@@ -78,7 +78,7 @@ void FLUID_3D::solvePressure(float* field, float* b, unsigned char* skip)
         deltaNew += _residual[index] * _residual[index];
 
   // delta0 = deltaNew
-  float delta0 = deltaNew;
+  // float delta0 = deltaNew;
 
   // While deltaNew > (eps^2) * delta0
   const float eps  = SOLVER_ACCURACY;
@@ -225,7 +225,7 @@ void FLUID_3D::solveHeat(float* field, float* b, unsigned char* skip)
         deltaNew += _residual[index] * _residual[index];
 
   // delta0 = deltaNew
-  float delta0 = deltaNew;
+  // float delta0 = deltaNew;
 
   // While deltaNew > (eps^2) * delta0
   const float eps  = SOLVER_ACCURACY;
@@ -316,3 +316,4 @@ void FLUID_3D::solveHeat(float* field, float* b, unsigned char* skip)
   }
   cout << i << " iterations converged to " << maxR << endl;
 }
+