Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nexus: Allow non spin-specific occupations in case of noncollinear #2957

Merged
merged 4 commits into from
Feb 26, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion nexus/lib/rmg_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -3504,8 +3504,12 @@ def generate_any_rmg_input(**kwargs):
ri.assign(wavefunction_grid=wf_grid)
#end if

if spin_polarized is None:
if spin_polarized is None and 'noncollinear' not in ri:
spin_polarized = system.spin_polarized_orbitals()
elif spin_polarized is None and 'noncollinear' in ri:
if not ri.noncollinear:
spin_polarized = system.spin_polarized_orbitals()
#end if
#end if

# set occupations
Expand Down