Win64 fix: disable 1GB restriction for 64bit windows systems, baking fluid with ...
authorDaniel Genrich <daniel.genrich@gmx.net>
Mon, 14 Jul 2008 12:24:49 +0000 (12:24 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Mon, 14 Jul 2008 12:24:49 +0000 (12:24 +0000)
intern/elbeem/intern/solver_init.cpp

index c953d2f47da66979878b645e62bfc1f28aec0679..a873f3c69874587ad84d61382ee1d2dee4f3b26a 100644 (file)
@@ -694,7 +694,7 @@ bool LbmFsgrSolver::initializeSolverMemory()
                double maxDefaultMemChunk = 2.*1024.*1024.*1024.;
                //std::cerr<<" memEstFine "<< memEstFine <<" maxWin:" <<maxWinMemChunk <<" maxMac:" <<maxMacMemChunk ; // DEBUG
 #ifdef WIN32
-               if(memEstFine> maxWinMemChunk) {
+               if(sizeof(void *)==4 && memEstFine>maxWinMemChunk) {
                        memBlockAllocProblem = true;
                }
 #endif // WIN32