Calculate and store derivatives of H and S during FC run

Enable calculation of dH/dR and dS/dR during FC run. Results are written to a new output file SystemLabel-dHSdR.nc (could potentially be merged into SystemLabel.nc).

Calculating the derivatives directly in SIESTA, instead of writing all HSX files to the disk and then calculating the derivatives might save a lot of disk space, especially when combined with new fdf flags which can be used to truncate small matrix elements in the derivative.

MD.FC.dHdRTol    -1. Ry/Bohr  ! Set tolerance for discarding matrix elements of derivative dH/dR [dS/dR]
MD.FC.dSdRTol    -1. 1/Bohr   ! Negative values -> no values are discarded

Closes #392 (closed)

Edited by Federico Pedron

Merge request reports

Loading