10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-07-11 22:03:47 +02:00

1.d-4 threshold in orthonormalization

This commit is contained in:
Anthony Scemama 2015-12-08 15:43:36 +01:00
parent 72925c9857
commit b39ae633a4
2 changed files with 10 additions and 7 deletions

1
ocaml/.gitignore vendored
View File

@ -1,6 +1,7 @@
_build
ezfio.ml
.gitignore
Git.ml
Input_auto_generated.ml
Input_determinants.ml
Input_hartree_fock.ml

View File

@ -82,7 +82,7 @@ subroutine ortho_lowdin(overlap,LDA,N,C,LDC,m)
!$OMP DO
do i=1,n
if ( D(i) < 1.d-12 ) then
if ( D(i) < 1.d-4 ) then
D(i) = 0.d0
else
D(i) = 1.d0/dsqrt(D(i))
@ -94,6 +94,7 @@ subroutine ortho_lowdin(overlap,LDA,N,C,LDC,m)
!$OMP END DO
do k=1,n
if (D(k) /= 0.d0) then
!$OMP DO
do j=1,n
do i=1,n
@ -101,6 +102,7 @@ subroutine ortho_lowdin(overlap,LDA,N,C,LDC,m)
enddo
enddo
!$OMP END DO NOWAIT
endif
enddo
!$OMP BARRIER