10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-23 04:43:50 +01:00

Trap linear dependencies in basis set

This commit is contained in:
Anthony Scemama 2015-11-27 10:30:50 +01:00
parent 7f4634e49b
commit 88c47b1f73
3 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,6 @@
enddo
!$OMP END PARALLEL DO
! Check for linear dependencies in the basis set
END_PROVIDER

View File

@ -4,6 +4,7 @@ program guess_mimi
END_DOC
implicit none
character*(64) :: label
mo_coef = ao_ortho_lowdin_coef
TOUCH mo_coef
label = "Guess"

View File

@ -82,8 +82,8 @@ subroutine ortho_lowdin(overlap,LDA,N,C,LDC,m)
!$OMP DO
do i=1,n
if ( D(i) < 1.d-6 ) then
D(i) = 0.d0
if ( D(i) < 1.d-12 ) then
stop 'Linear dependence in basis set'
else
D(i) = 1.d0/dsqrt(D(i))
endif