Describe the bug
D4_model calculator sometimes returns NaNs from get_forces()
To Reproduce
To reproduce with dftd4:
- Unpack the archive: POSCAR.tar.gz
- Run
dftd4 --func pbe --grad hcp.POSCAR
- Check that
gradient file contains NaNs
Whilst
dftd4 --func pbe --grad fcc.POSCAR
works well
To reproduce with Python:
- Unpack the archive: dftd4-get_forces.tar.gz
- Run
test.py
- Check that for
hcp.py the test prints nan's