mirror of
https://gitlab.com/scemama/eplf
synced 2024-12-23 04:43:52 +01:00
Provide overlap matrix
This commit is contained in:
parent
44b010d794
commit
dd5ad983c0
18
debug.irp.f
18
debug.irp.f
@ -1,16 +1,10 @@
|
|||||||
program debug
|
program debug
|
||||||
|
implicit none
|
||||||
double precision :: ao_overlap
|
double precision :: ao_overlap
|
||||||
print *, ao_overlap(1,1)
|
integer :: i,j
|
||||||
integer :: i
|
do i=1,ao_num
|
||||||
do i=1,ao_prim_num(1)
|
do j=1,ao_num
|
||||||
print *, ao_expo(i,1), ao_coef(i,1)
|
print *, i,j, ao_overlap_matrix(i,j)
|
||||||
|
enddo
|
||||||
enddo
|
enddo
|
||||||
print *, ''
|
|
||||||
print *, ao_overlap(1,5)
|
|
||||||
print *, ao_power(5,1:3)
|
|
||||||
do i=1,ao_prim_num(5)
|
|
||||||
print *, ao_expo(i,5), ao_coef(i,5)
|
|
||||||
enddo
|
|
||||||
print *, ''
|
|
||||||
print *, ao_overlap(5,5)
|
|
||||||
end
|
end
|
||||||
|
@ -139,3 +139,23 @@ double precision function ao_overlap(i,j)
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
|
|
||||||
|
BEGIN_PROVIDER [ double precision, ao_overlap_matrix, (ao_num,ao_num) ]
|
||||||
|
implicit none
|
||||||
|
BEGIN_DOC
|
||||||
|
! Overlap matrix between the Atomic Orbitals
|
||||||
|
END_DOC
|
||||||
|
|
||||||
|
integer :: i, j
|
||||||
|
double precision :: ao_overlap
|
||||||
|
do j=1,ao_num
|
||||||
|
do i=j,ao_num
|
||||||
|
ao_overlap_matrix(i,j) = ao_overlap(i,j)
|
||||||
|
enddo
|
||||||
|
enddo
|
||||||
|
do j=1,ao_num
|
||||||
|
do i=1,j-1
|
||||||
|
ao_overlap_matrix(i,j) = ao_overlap(j,i)
|
||||||
|
enddo
|
||||||
|
enddo
|
||||||
|
END_PROVIDER
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user