tianjuxue / jax-am

Additive manufacturing simulation with JAX.
https://jax-am.readthedocs.io/en/latest/
GNU General Public License v3.0
268 stars 56 forks source link

Memory leakage problem in \applications\fem\thermal #4

Closed Jiangce2017 closed 1 year ago

Jiangce2017 commented 1 year ago

I found that when I run the thermal simulation the memory usage increase very fast. It might be caused by the lists that store inner_faces, external_faces, and all_faces. Python's List data structure is reported to consume larger memory than other data structure, like numpy.array. I am trying to replace the lists with numpy.array to see if the memory usage could be diminished.

tianjuxue commented 1 year ago

Closing this issue since no obvious bug of the library was found after testing.