mirror of
https://github.com/pfloos/quack
synced 2025-01-05 11:00:21 +01:00
28 lines
491 B
Fortran
28 lines
491 B
Fortran
subroutine AOtoMO_transform(nBas,c,A)
|
|
|
|
! Perform AO to MO transformation of a matrix A for given coefficients c
|
|
|
|
implicit none
|
|
|
|
! Input variables
|
|
|
|
integer,intent(in) :: nBas
|
|
double precision,intent(in) :: c(nBas,nBas)
|
|
|
|
integer :: i,j
|
|
|
|
! Output variables
|
|
|
|
double precision,intent(inout):: A(nBas,nBas)
|
|
|
|
A = matmul(transpose(c),matmul(A,c))
|
|
|
|
! do j=1,nBas
|
|
! do i=1,nBas
|
|
! write(10,'(I5,I5,F16.10)') i,j,A(i,j)
|
|
! enddo
|
|
! enddo
|
|
|
|
|
|
end subroutine AOtoMO_transform
|