Remove soc pwbase workaround - #89
Open
Minotakm wants to merge 2 commits into
Open
Conversation
PwBaseWorkChain.get_builder_from_protocol supports SOC/non-collinear natively since aiida-quantumespresso 4.12, so pass spin_type straight through instead of forcing pw_spin_type to NONE and injecting the SYSTEM flags via the spin_orbit/spin_noncollinear overrides. SOC is now magnetically initialized by default. Bump the aiida-quantumespresso pin to >=4.12.
The previous commit changes the SOC builder output, so the spin_orbit data_regression snapshots no longer match. Regenerated against aiida-quantumespresso 4.17.0; only the spin_orbit fixtures change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove SOC workaround in Wannier90WorkChain.get_builder_from_protocol
PwBaseWorkChain.get_builder_from_protocolnow supports non-collinear and spin-orbit calculations natively (added in aiida-quantumespresso v4.12.0, commit aiidateam/aiida-quantumespresso@0c81dad). It setsnoncolin/nspin/lspinorband seedsstarting_magnetizationfrominitial_magnetic_moments, the structure's magmoms, or the per-element defaults.This PR removes the workaround in
Wannier90WorkChain.get_builder_from_protocol. We now passspin_typestraight through to the scf/nscf builders and let
PwBaseWorkChainhandle it.SOC calculations are now magnetically initialized by default. Previously the workaround produced a non-magnetic SOC calculation (only
lspinorb/noncolin, nostarting_magnetization). Regenerated the fixtures to comply with these changes in the spin orbit case. Please let me know what you think 😃