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

Wien2k converter crashes #149

Open
johanjoensson opened this issue Sep 18, 2020 · 0 comments
Open

Wien2k converter crashes #149

johanjoensson opened this issue Sep 18, 2020 · 0 comments
Labels

Comments

@johanjoensson
Copy link

The Wien2k converter method "convert_misc_input" reads some symmetry data from the "case.outputs" file, generated by the program "symmetry". When performing a spin-polarised calculation with spin-orbit coupling the number of symmetries might change. I the user runs "symmetry" after having initialised the spin-orbit coupling (i.e. after running "initso_lapw") there will be warnings and blank lines printed in the "case.outputso" file. The Wien2k converter assumes that there are no blank lines in "case.outputso", and crashes when it encounters one.

In the gist is a git diff showing our solution to this problem, essentially we read the symmetries in "case.struct_st", compare the number of symmetries with the number of symmetries in "case.struct" and raise an IOError if they do not match. If they match we then read the symmetries in the "case.outputs" file and discard any that are not present in the struct file. If we do not find the expected number of matching symmetries we raise an IOError.

This has been tested on the py2_compat release, the bug is present also on the 3.0.0 release.

70akaline added a commit to 70akaline/dft_tools that referenced this issue Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant