Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/gorges97/xtb into main
Browse files Browse the repository at this point in the history
  • Loading branch information
gorges97 committed Sep 11, 2024
2 parents 4a8dee7 + fe52c31 commit 7f85fab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hessian.F90
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ subroutine rescale_freq(n3,htb,hess,hbias,freq,fc_tb,fc_bias,freq_scal)
real(wp), intent(out) :: freq_scal(n3)
real(wp),allocatable :: v(:)
real(wp),allocatable :: fc_tmp(:)
real(wp), parameter :: alp1=1.27_wp, alp2=1.5d-4
real(wp), parameter :: alp1=1.27_wp, alp2=1.5e-4_wp
integer, intent(in) :: n3
integer :: j

Expand All @@ -740,9 +740,9 @@ subroutine rescale_freq(n3,htb,hess,hbias,freq,fc_tb,fc_bias,freq_scal)
fc_tb(j) = mctc_dot(v,fc_tmp)
call mctc_gemv(hbias,v,fc_tmp)
fc_bias(j) = mctc_dot(v,fc_tmp)
if (abs(freq(j)).gt.1.0d-6) then
if (abs(freq(j)) .gt. 1.0e-6_wp) then
freq_scal(j) = sqrt( (fc_tb(j)+alp2) / ( (fc_tb(j)+alp2) + alp1*fc_bias(j) ) )
if (fc_tb(j).lt.0.and.fc_bias(j).ne.0) then
if (fc_tb(j) .lt. 0.0_wp .and. fc_bias(j) .ne. 0.0_wp) then
freq_scal(j) = -sqrt( (abs(fc_tb(j))+alp2) / ( (abs(fc_tb(j))+alp2) + alp1*fc_bias(j) ) )
end if
else
Expand Down

0 comments on commit 7f85fab

Please sign in to comment.