zerothi / sisl

Electronic structure Python package for post analysis and large scale tight-binding DFT/NEGF calculations
https://zerothi.github.io/sisl
Mozilla Public License 2.0
173 stars 57 forks source link

Clarify out of memory error on density #796

Closed pfebrer closed 2 weeks ago

pfebrer commented 2 weeks ago

I have been testing the limits and for 10000 orbitals numpy needs to allocate 23GiB, which is too much for my RAM, and it fails.

It then throws a numpy.core._exceptions._ArrayMemoryError, which a user might not understand how to solve. Here we raise a clearer error for the user that is trying to compute the density.

It takes veeery long to compute such a system with the direct method, but at least it can be computed.