9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-09 21:23:30 +01:00

Add ao_first_of_shell for trexio

This commit is contained in:
Anthony Scemama 2021-10-12 16:01:16 +02:00
parent e578d642c8
commit b5da98c415
2 changed files with 16 additions and 1 deletions

View File

@ -21,6 +21,21 @@ BEGIN_PROVIDER [ integer, ao_shell, (ao_num) ]
enddo
enddo
END_PROVIDER
BEGIN_PROVIDER [ integer, ao_first_of_shell, (shell_num) ]
implicit none
BEGIN_DOC
! Index of the shell to which the AO corresponds
END_DOC
integer :: i, j, k, n
k=1
do i=1,shell_num
ao_first_of_shell(i) = k
n = shell_ang_mom(i)+1
k = k+(n*(n+1))/2
enddo
END_PROVIDER
BEGIN_PROVIDER [ double precision, ao_coef_normalized, (ao_num,ao_prim_num_max) ]

View File

@ -39,7 +39,7 @@ interface: ezfio, provider
[shell_prim_index]
type: integer
doc: Max number of primitives in a shell
doc: Index of the first primitive of the shell
size: (basis.shell_num)
interface: ezfio, provider