Skip to content

Commit

Permalink
fix: siesta non-colinear mode does not work.
Browse files Browse the repository at this point in the history
  • Loading branch information
mailhexu committed Sep 6, 2021
1 parent 52c4966 commit ee1b664
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TB2J/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def gen_exchange_siesta(fdf_fname,
f"All calculation finsihed. The results are in {output_path} directory."
)

elif H.spin.is_spinorbit:
elif H.spin.is_spinorbit or H.spin.is_noncolinear:

print("Reading Siesta hamiltonian: non-colinear spin.")
tbmodel = SislWrapper(H, spin=None)
Expand Down
2 changes: 1 addition & 1 deletion TB2J/sisl_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, sisl_hamiltonian, spin=None):
self.orb_dict[ia] += orb_names
self.norb = len(self.orbs)
self.nbasis = self.norb
elif self.ham.spin.is_spinorbit or self.spin == 'merge':
elif self.ham.spin.is_spinorbit or self.ham.spin.is_noncolinear or self.spin == 'merge':
for ia, a in enumerate(_atoms):
symnum = sdict[ia]
orb_names = []
Expand Down

0 comments on commit ee1b664

Please sign in to comment.