Skip to content

Commit

Permalink
Switch from dpotrf to dpptrf & invert diagonal elements
Browse files Browse the repository at this point in the history
  • Loading branch information
godotalgorithm committed Dec 18, 2022
1 parent 3c37efb commit b736712
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/solvation/cosmo.F90
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,10 @@ subroutine coscl1 (a, id, n)
id(i) = indi
indi = indi + i
end do
call dpotrf('L', n, a, n, info)
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)
! THIS ROUTINE SOLVES THE LINEAR SYSTEM CX = Y BASED ON
Expand Down

0 comments on commit b736712

Please sign in to comment.