テンプレート:Release Notes/2.46/Physics/Fluid Simulation

提供: wiki
移動先: 案内検索

Nils added OpenMP/multithreading support for fluids! See rev 12645! --Genscher 15:04, 12 February 2008 (CET)

Commit log of Nils:

- Added OpenMP code, it is enabled by defining PARALLEL=1 for the elbeem

 compilation.  Currently, it is not yet active by default, but 
 Genscher wanted to do some tests. 
 It can be used to distribute the computation load onto multiple shared-
 memory CPUs by splitting the domain along the y-axis (assuming a 
 gravity force along z). However, there is no load balancing: so
 if there's fluid only in one of the y-axis halves you will not get 
 a speedup for 2 CPUs.  

- Added a fix for the memory allocation bugs #7120 and #6775. In

 solver_init.cpp there are now several variables max___MemChunk 
 (line 692+), that set upper limits for various systems. The same
 problem existed for mac & linux, but the limit is higher, so 
 it probably went by undetected. The windows limit is currently 1GB,
 if the strange 700MB limit problems mentioned in the bug regports the 
 bugs persist, this could be further reduced. For 64bit compilations 
 this problem shouldn't exist anyway.
 What's still missing is a display of how much the resolution was 
 reduced to fit into memory...

- And some minor solver code cleanup.