Describe the bug
(From AiiDA-QE) When running core-hole SCF calculations in the XpsWorkChain and XspectraCrystalWorkChain with default settings in combination with the Grimme D3 vdW correction, the SCF calculation returns NaN for the total energy. This is because the DFT-D3 module of QE sets D3 parameters based on the ATOMIC SPECIES name, but if the name is not a valid element symbol then the program continues to the SCF procedure rather than crashing due to the unidentified element symbol.
This will happen using the default settings for both WorkChains because the default abs_atom_marker is set to X:
Proposed Solution
Changing the absorbing atom to <element_symbol><number> easily fixes the issue, as numbers are automatically trimmed when the DFT-D3 module reads the species name:
For AiiDA-QE, this is possible through overrides, however there is currently no way to set the abs_atom_marker in AiiDALab-QE and thus the WorkChains will fail unless the absorbing atom marker is changed.
Describe the bug (From AiiDA-QE) When running core-hole SCF calculations in the
XpsWorkChain
andXspectraCrystalWorkChain
with default settings in combination with the Grimme D3 vdW correction, the SCF calculation returnsNaN
for the total energy. This is because the DFT-D3 module of QE sets D3 parameters based on theATOMIC SPECIES
name, but if the name is not a valid element symbol then the program continues to the SCF procedure rather than crashing due to the unidentified element symbol.This will happen using the default settings for both
![SCF-Final_Energy_NaN](https://github.com/aiidalab/aiidalab-qe/assets/55498719/4f9330fb-6353-4227-b25a-976f93c97a2d)
WorkChain
s because the defaultabs_atom_marker
is set toX
:Proposed Solution Changing the absorbing atom to
![D3_Terms_Table-C1_Absorber](https://github.com/aiidalab/aiidalab-qe/assets/55498719/2eb2ec4a-c70d-40ed-ac14-aa8aae2fb8b5)
<element_symbol><number>
easily fixes the issue, as numbers are automatically trimmed when the DFT-D3 module reads the species name:For
AiiDA-QE
, this is possible through overrides, however there is currently no way to set theabs_atom_marker
inAiiDALab-QE
and thus theWorkChain
s will fail unless the absorbing atom marker is changed.