aiidateam / aiida-quantumespresso

The official AiiDA plugin for Quantum ESPRESSO
https://aiida-quantumespresso.readthedocs.io
Other
53 stars 78 forks source link

Consider parsing Warnings about "negative rho" #799

Open ltalirz opened 2 years ago

ltalirz commented 2 years ago

QE issues the following warning if the electron density becomes negative through the course of a calculation (see code)

negative rho (up, down):  5.559E-01 1.964E-01

This can happen e.g. in the case of PAW pseudopotentials.

We found this to occur frequently with the SSSP for the lanthanides, and it often prevented the ensemble-DFT-based minimization procedure in sirius from converging.

Mentioning @mbercx for info

mbercx commented 2 years ago

Thanks for raising the issue, @ltalirz! I agree it makes sense to parse these and at least add a warning to the report. If the charge density is very negative, we could even consider adding an exit code to make the issue more visible.