mirror of
https://github.com/triqs/dft_tools
synced 2025-04-03 23:41:42 +02:00

A method 'density_matrix()' for evaluating a density matrix of a given shell has been added to class ProjectorShell. It requires an ElectronicStructure object as an input an by default produces a site- and spin-diagonal part of the density matrix using the Fermi-weights obtained directly from VASP. Ideally, this density matrix should coincide with the one calculated within VASP itself (inside the LDA+U module). Corresponding sanity test has been added, which shows only that the calculation does not crash. Real numerical tests are needed.