This patch fixes optimization issues comes from refactoring of geometry optimization done in #982.
I optimized some medium-size systems (~500-1500 atoms) and noticed that results between versions 6.7.0 and 6.7.1 are different. Moreover, geometry optimizations started to fail in 6.7.1 version, while it was OK for 6.7.0 version.
This patch fixes optimization issues comes from refactoring of geometry optimization done in #982.
I optimized some medium-size systems (~500-1500 atoms) and noticed that results between versions 6.7.0 and 6.7.1 are different. Moreover, geometry optimizations started to fail in 6.7.1 version, while it was OK for 6.7.0 version.
I found that problem comes from commit https://github.com/grimme-lab/xtb/pull/982/commits/5366177e23b0ad7f5b09ea6d1759c38dd11c4609, in which the blowing up of hessian was moved.
I have tested this patch with a few iterations of my systems and it works almost like with 6.7.0 version.
Closes #1073