[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36583] trunk/blender/intern/smoke/intern: Change name to one that should not collide with either SCons or auto cleanups .

gsr b3d gsr.b3d at infernal-iceberg.com
Mon May 9 23:45:02 CEST 2011


Revision: 36583
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36583
Author:   gsrb3d
Date:     2011-05-09 21:45:01 +0000 (Mon, 09 May 2011)
Log Message:
-----------
Change name to one that should not collide with either SCons or auto cleanups.
Things like .back, .backup, .bak or ~ are easy preys.

Added Paths:
-----------
    trunk/blender/intern/smoke/intern/main.cpp_disabled

Removed Paths:
-------------
    trunk/blender/intern/smoke/intern/main.cpp.bak

Deleted: trunk/blender/intern/smoke/intern/main.cpp.bak
===================================================================
--- trunk/blender/intern/smoke/intern/main.cpp.bak	2011-05-09 21:38:55 UTC (rev 36582)
+++ trunk/blender/intern/smoke/intern/main.cpp.bak	2011-05-09 21:45:01 UTC (rev 36583)
@@ -1,72 +0,0 @@
-//////////////////////////////////////////////////////////////////////
-// This file is part of Wavelet Turbulence.
-// 
-// Wavelet Turbulence is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-// 
-// Wavelet Turbulence is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-// 
-// You should have received a copy of the GNU General Public License
-// along with Wavelet Turbulence.  If not, see <http://www.gnu.org/licenses/>.
-// 
-// Copyright 2008 Theodore Kim and Nils Thuerey
-// 
-//////////////////////////////////////////////////////////////////////
-
-#include <iostream>
-#include "FLUID_3D.h"
-
-using namespace std;
-
-//////////////////////////////////////////////////////////////////////////////
-//////////////////////////////////////////////////////////////////////////////
-int main(int argc, char *argv[])
-{
-  cout << "=========================================================================" << endl;
-  cout << " Wavelet Turbulence simulator " << endl;
-  cout << "=========================================================================" << endl;
-  cout << " This code is Copyright 2008 Theodore Kim and Nils Thuerey and released" << endl;
-  cout << " under the GNU public license. For more information see:" << endl << endl;
-  cout << "   http://www.cs.cornell.edu/~tedkim/WTURB" << endl;
-  cout << "=========================================================================" << endl;
-
-  int xRes = 48;
-  int yRes = 64;
-  int zRes = 48;
-  int amplify = 4;
-  int totalCells = xRes * yRes * zRes;
-  int amplifiedCells = totalCells * amplify * amplify * amplify;
-  
-  // print out memory requirements
-  long long int coarseSize = sizeof(float) * totalCells * 22 + 
-                   sizeof(unsigned char) * totalCells;
-  long long int fineSize = sizeof(float) * amplifiedCells * 7 + // big grids
-                 sizeof(float) * totalCells * 8 +     // small grids
-                 sizeof(float) * 128 * 128 * 128;     // noise tile
-  long long int totalMB = (coarseSize + fineSize) / 1048576;
-  cout << " Current coarse resolution: " << xRes << " x " << yRes << " x " << zRes << endl;
-  cout << " Current amplified resolution: " << xRes * amplify << " x " << yRes * amplify 
-                                            << " x " << zRes * amplify << endl;
-  cout << " At least " << totalMB << " MB of RAM needed " << endl;
-  cout << "=========================================================================" << endl;
-  cout.flush();
-
-  // create output directories
-  system("mkdir original.preview");
-  system("mkdir amplified.preview");
-  system("mkdir pbrt");
-  
-	FLUID_3D fluid(xRes, yRes, zRes, amplify);
-  for (int x = 0; x < 300; x++)
-  {
-    fluid.addSmokeColumn();
-    fluid.step();
-  }
-
-	return EXIT_SUCCESS;
-}

Copied: trunk/blender/intern/smoke/intern/main.cpp_disabled (from rev 36582, trunk/blender/intern/smoke/intern/main.cpp.bak)
===================================================================
--- trunk/blender/intern/smoke/intern/main.cpp_disabled	                        (rev 0)
+++ trunk/blender/intern/smoke/intern/main.cpp_disabled	2011-05-09 21:45:01 UTC (rev 36583)
@@ -0,0 +1,72 @@
+//////////////////////////////////////////////////////////////////////
+// This file is part of Wavelet Turbulence.
+// 
+// Wavelet Turbulence is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+// 
+// Wavelet Turbulence is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with Wavelet Turbulence.  If not, see <http://www.gnu.org/licenses/>.
+// 
+// Copyright 2008 Theodore Kim and Nils Thuerey
+// 
+//////////////////////////////////////////////////////////////////////
+
+#include <iostream>
+#include "FLUID_3D.h"
+
+using namespace std;
+
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+int main(int argc, char *argv[])
+{
+  cout << "=========================================================================" << endl;
+  cout << " Wavelet Turbulence simulator " << endl;
+  cout << "=========================================================================" << endl;
+  cout << " This code is Copyright 2008 Theodore Kim and Nils Thuerey and released" << endl;
+  cout << " under the GNU public license. For more information see:" << endl << endl;
+  cout << "   http://www.cs.cornell.edu/~tedkim/WTURB" << endl;
+  cout << "=========================================================================" << endl;
+
+  int xRes = 48;
+  int yRes = 64;
+  int zRes = 48;
+  int amplify = 4;
+  int totalCells = xRes * yRes * zRes;
+  int amplifiedCells = totalCells * amplify * amplify * amplify;
+  
+  // print out memory requirements
+  long long int coarseSize = sizeof(float) * totalCells * 22 + 
+                   sizeof(unsigned char) * totalCells;
+  long long int fineSize = sizeof(float) * amplifiedCells * 7 + // big grids
+                 sizeof(float) * totalCells * 8 +     // small grids
+                 sizeof(float) * 128 * 128 * 128;     // noise tile
+  long long int totalMB = (coarseSize + fineSize) / 1048576;
+  cout << " Current coarse resolution: " << xRes << " x " << yRes << " x " << zRes << endl;
+  cout << " Current amplified resolution: " << xRes * amplify << " x " << yRes * amplify 
+                                            << " x " << zRes * amplify << endl;
+  cout << " At least " << totalMB << " MB of RAM needed " << endl;
+  cout << "=========================================================================" << endl;
+  cout.flush();
+
+  // create output directories
+  system("mkdir original.preview");
+  system("mkdir amplified.preview");
+  system("mkdir pbrt");
+  
+	FLUID_3D fluid(xRes, yRes, zRes, amplify);
+  for (int x = 0; x < 300; x++)
+  {
+    fluid.addSmokeColumn();
+    fluid.step();
+  }
+
+	return EXIT_SUCCESS;
+}




More information about the Bf-blender-cvs mailing list