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

SCF convergence handling #66

Open
ezpzbz opened this issue Jun 1, 2021 · 0 comments
Open

SCF convergence handling #66

ezpzbz opened this issue Jun 1, 2021 · 0 comments

Comments

@ezpzbz
Copy link
Owner

ezpzbz commented Jun 1, 2021

In the below section of VaspMultiStageWorkChain (https://github.com/morgan-group-bath/aiida-bjm/blob/9335c95034d7569ba83b7bfd648f171124e298ac/aiida_bjm/workchains/vasp_multistage.py#L523-L532), if we face an issue and change the ALGO to All, then if the same issue happens, none of if elif conditions will meet, and therfore, the process gets excepted with:

algo = self.ctx.modifications['ALGO']
KeyError: 'ALGO'

Solution is that having an else or elif to capture this and breaks the process peacefully with proper exit code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant