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

correct error printout and stop in postw90.x #534

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

JeromeCCP9
Copy link
Collaborator

@JeromeCCP9 JeromeCCP9 commented Jan 17, 2025

Error handling in the main postw90.x executable had not been updated to most recent design.

The program (standalone) should quit after printing the error message. This differs from the library mode where the error mechanism is cleared and an integer error code is returned to the calling program. postw90.x was using the library routine without calling "stop" afterwards as required.

This commit includes a new function "print_error_halt" which prints the error and halts. It is used only in the postw90.x main executable. The wannier90.x (which is a wrapper around the library) does not need this.

This amounts to a bugfix relating to PR #531

@jryates jryates merged commit dec3e80 into wannier-developers:develop Jan 17, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants