mountaindust / Planktos

ABM framework for dispersal modeling
https://planktos.readthedocs.io
GNU General Public License v3.0
5 stars 3 forks source link

Memory management for tiled domains #59

Open mountaindust opened 2 years ago

mountaindust commented 2 years ago

Currently, when the domain is tiled, the fluid data is literally duplicated in memory. There's absolutely no reason for this to occur, and in applications where we want to create an array of cylinders from one, thin, slice of a domain, it is extremely inefficient. Add in some time varying fluid velocities and things get very bad, very quick.

Instead, tiled fluid domains should reference the same memory for the fluid. Note that the tiling of stl files is not really a concern - these are typically only KB in size.