mirror of
https://github.com/triqs/dft_tools
synced 2024-09-12 05:38:31 +02:00
[proj_shell] change equiv-class index to repr-ion index
This commit is contained in:
parent
77ca9b614b
commit
d55d8f3911
@ -76,6 +76,7 @@ class ProjectorGroup:
|
||||
|
||||
else:
|
||||
ib_win, ib_min, ib_max = self.select_bands(eigvals)
|
||||
|
||||
self.ib_win = ib_win
|
||||
self.ib_min = ib_min
|
||||
self.ib_max = ib_max
|
||||
|
@ -86,8 +86,10 @@ class ProjectorShell:
|
||||
self.ion_sort = []
|
||||
for ion in self.ion_list:
|
||||
for icl, eq_cl in enumerate(self.ions['ion_list']):
|
||||
# Representative ion index of equivalence class `eq_cl`
|
||||
ion_rep = eq_cl[0]
|
||||
if ion in eq_cl:
|
||||
self.ion_sort.append(icl + 1) # Enumerate classes starting from 1
|
||||
self.ion_sort.append(ion_rep + 1) # Enumerate classes starting from 1
|
||||
break
|
||||
|
||||
self.ndim = self.extract_tmatrices(sh_pars)
|
||||
|
Loading…
Reference in New Issue
Block a user