3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-02 11:25:29 +02:00

Fixed the determination of parameter 'shell.ndim'

Parameter 'ndim' of class 'ProjectedShell' was calculated
incorrectly, giving the value of 6 for a d-shell.
This commit is contained in:
Oleg E. Peil 2015-09-16 10:31:58 +02:00 committed by Michel Ferrero
parent 7256907c72
commit 529c7bc9d5

View File

@ -278,10 +278,9 @@ class ProjectorShell:
self.lm1 = self.lorb**2
self.lm2 = (self.lorb+1)**2
self.ndim = self.lm2 - self.lm1
if self.tmatrix is None:
self.ndim = self.lm2 - self.lm1 + 1
self.ndim = self.lm2 - self.lm1
else:
# TODO: generalize this to a tmatrix for every ion
self.ndim = self.tmatrix.shape[0]