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

PwCalculation: Incorrect exit message for ERROR_CHARGE_IS_WRONG #976

Open
mbercx opened this issue Oct 26, 2023 · 1 comment
Open

PwCalculation: Incorrect exit message for ERROR_CHARGE_IS_WRONG #976

mbercx opened this issue Oct 26, 2023 · 1 comment

Comments

@mbercx
Copy link
Member

mbercx commented Oct 26, 2023

Just noticed this beautiful copy-pasta:

spec.exit_code(531, 'ERROR_CHARGE_IS_WRONG',
message='The electronic minimization cycle did not reach self-consistency.')

That apparently has managed to avoid being spotted for over 4 years, since it was added in 4fc9e12. ^^

@sphuber do you remember what "charge is wrong" means, specifically? I'm assuming that QE knows the number of valence electrons, and when the integrated charge density doesn't match this number this error pops up?

@sphuber
Copy link
Contributor

sphuber commented Oct 27, 2023

Something like that, I am not a 100% sure on the details either. Here is the example output:

     WARNING: integrated charge=     0.00003902, expected=   114.00000000

 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     Error in routine electrons (1):
     charge is wrong
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

     stopping ...

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

2 participants