Skip to content

Commit

Permalink
Correcting units conversion for nonadiabatic couplings.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanosJiri committed May 8, 2024
1 parent 0a32cbe commit 141f613
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/potentials_sh.F90
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ subroutine force_nai(x, y, z, fx, fy, fz, eclas)
E2 = (VA + VX)/2.0d0 + dsqrt((VA - VX)**2.0d0 + 4.0d0*VXA**2.0d0)/2.0d0
! nonadiabatic coupling vector in the reduced system
d12 = -(VXA*(dVA - dVX) + (-VA + VX)*dVXA)/(VA**2.0d0 - 2.0d0*VA*VX + VX**2.0d0 + 4.0d0*VXA**2.0d0)
d12 = d12/ANG
! derivatives of energies
dE1 = (dVA + dVX)/2.0d0 - (2.0d0*(VA - VX)*(dVA - dVX) + 8.0d0*VXA*dVXA)/(4.0d0*dsqrt((VA - VX)**2.0d0 + 4.0d0*VXA**2.0d0))
dE2 = (dVA + dVX)/2.0d0 + (2.0d0*(VA - VX)*(dVA - dVX) + 8.0d0*VXA*dVXA)/(4.0d0*dsqrt((VA - VX)**2.0d0 + 4.0d0*VXA**2.0d0))
Expand Down

0 comments on commit 141f613

Please sign in to comment.