Skip to content

Commit

Permalink
Merge pull request #137 from QuChem/main
Browse files Browse the repository at this point in the history
adding changes to cosmo
  • Loading branch information
godotalgorithm authored Dec 18, 2022
2 parents 80619f0 + b736712 commit 889934a
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions src/solvation/cosmo.F90
Original file line number Diff line number Diff line change
Expand Up @@ -641,32 +641,15 @@ subroutine coscl1 (a, id, n)
integer, intent (in) :: n
double precision, dimension (*), intent (inout) :: a
integer, dimension (n), intent (inout) :: id
integer :: i, indi, indk, j, k, kk
double precision :: summe
integer :: i, indi, info
indi = 0
do i = 1, n
id(i) = indi
indi = indi + i
end do
do k = 1, n
indk = id(k)
kk = k + indk
do i = k, n
indi = id(i)
summe = 0.d0
do j = 1, k - 1
summe = summe + a(j + indi) * a(j + indk)
end do
summe = a(k + indi) - summe
if (i == k) then
if (summe < 0.0d0) then
summe = a(kk)
end if
a(kk) = 1.d0 / Sqrt (summe)
else
a(k + indi) = summe * a(kk)
end if
end do
call dpptrf('U', n, a, info)
do i = 1, n
a(i+id(i)) = 1.0d0/a(i+id(i))
end do
end subroutine coscl1
subroutine coscl2 (a, id, x, y, n)
Expand Down

0 comments on commit 889934a

Please sign in to comment.