mirror of
https://github.com/pfloos/quack
synced 2025-05-07 07:35:02 +02:00
wip: debug orthogonalization
This commit is contained in:
parent
0fd804d51b
commit
06ef322a39
@ -99,11 +99,12 @@ subroutine cRHF(dotest,maxSCF,thresh,max_diis,guess_type,level_shift,nNuc,ZNuc,r
|
|||||||
call complex_matout(nBas,nBas,c)
|
call complex_matout(nBas,nBas,c)
|
||||||
write(*,*) "Check if c orthonormal"
|
write(*,*) "Check if c orthonormal"
|
||||||
call complex_matout(nBas,nBas,matmul(transpose(c),matmul(S,c)))
|
call complex_matout(nBas,nBas,matmul(transpose(c),matmul(S,c)))
|
||||||
c = matmul(c,Z)
|
|
||||||
call complex_orthogonalize_matrix(nBas,matmul(transpose(c),matmul(S,c)),Z)
|
call complex_orthogonalize_matrix(nBas,matmul(transpose(c),matmul(S,c)),Z)
|
||||||
|
c = matmul(c,Z)
|
||||||
write(*,*) "Check if c tilde orthonormal"
|
write(*,*) "Check if c tilde orthonormal"
|
||||||
|
call complex_matout(nBas,nBas,matmul(transpose(c),matmul(S,c)))
|
||||||
|
|
||||||
|
|
||||||
call complex_matout(nBas,nBas,matmul(transpose(Z),matmul(S,Z)))
|
|
||||||
P(:,:) = 2d0*matmul(c(:,1:nO),transpose(c(:,1:nO)))
|
P(:,:) = 2d0*matmul(c(:,1:nO),transpose(c(:,1:nO)))
|
||||||
|
|
||||||
! Initialization
|
! Initialization
|
||||||
|
@ -45,7 +45,7 @@ subroutine complex_orthogonalize_matrix(nBas,S,X)
|
|||||||
|
|
||||||
enddo
|
enddo
|
||||||
call diag(nBas,Uval, D)
|
call diag(nBas,Uval, D)
|
||||||
X = matmul(Uvec,matmul(D,conjg(transpose(Uvec))))
|
X = matmul(Uvec,matmul(D,transpose(Uvec)))
|
||||||
deallocate(Uvec,Uval,D)
|
deallocate(Uvec,Uval,D)
|
||||||
end subroutine
|
end subroutine
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user