mirror of
https://github.com/triqs/dft_tools
synced 2025-01-02 17:45:47 +01: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:
parent
7256907c72
commit
529c7bc9d5
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user