mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-03 10:05:57 +01:00
added core integrals
This commit is contained in:
parent
e6505dfb98
commit
59cb6c4402
5
plugins/core_integrals/.gitignore
vendored
Normal file
5
plugins/core_integrals/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
IRPF90_temp/
|
||||
IRPF90_man/
|
||||
irpf90.make
|
||||
irpf90_entities
|
||||
tags
|
1
plugins/core_integrals/AO_Basis
Symbolic link
1
plugins/core_integrals/AO_Basis
Symbolic link
@ -0,0 +1 @@
|
||||
/home/giner/qp_bis/quantum_package/src/AO_Basis
|
1
plugins/core_integrals/Bitmask
Symbolic link
1
plugins/core_integrals/Bitmask
Symbolic link
@ -0,0 +1 @@
|
||||
/home/giner/qp_bis/quantum_package/src/Bitmask
|
1
plugins/core_integrals/Electrons
Symbolic link
1
plugins/core_integrals/Electrons
Symbolic link
@ -0,0 +1 @@
|
||||
/home/giner/qp_bis/quantum_package/src/Electrons
|
1
plugins/core_integrals/Ezfio_files
Symbolic link
1
plugins/core_integrals/Ezfio_files
Symbolic link
@ -0,0 +1 @@
|
||||
/home/giner/qp_bis/quantum_package/src/Ezfio_files
|
1
plugins/core_integrals/Integrals_Bielec
Symbolic link
1
plugins/core_integrals/Integrals_Bielec
Symbolic link
@ -0,0 +1 @@
|
||||
/home/giner/qp_bis/quantum_package/src/Integrals_Bielec
|
1
plugins/core_integrals/Integrals_Monoelec
Symbolic link
1
plugins/core_integrals/Integrals_Monoelec
Symbolic link
@ -0,0 +1 @@
|
||||
/home/giner/qp_bis/quantum_package/src/Integrals_Monoelec
|
1
plugins/core_integrals/MO_Basis
Symbolic link
1
plugins/core_integrals/MO_Basis
Symbolic link
@ -0,0 +1 @@
|
||||
/home/giner/qp_bis/quantum_package/src/MO_Basis
|
16
plugins/core_integrals/Makefile
Normal file
16
plugins/core_integrals/Makefile
Normal file
@ -0,0 +1,16 @@
|
||||
IRPF90 = irpf90 #-a -d
|
||||
FC = gfortran
|
||||
FCFLAGS= -O2 -ffree-line-length-none -I .
|
||||
NINJA = ninja
|
||||
AR = ar
|
||||
RANLIB = ranlib
|
||||
|
||||
SRC=
|
||||
OBJ=
|
||||
LIB=
|
||||
|
||||
include irpf90.make
|
||||
export
|
||||
|
||||
irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile
|
||||
$(IRPF90)
|
1
plugins/core_integrals/NEEDED_CHILDREN_MODULES
Normal file
1
plugins/core_integrals/NEEDED_CHILDREN_MODULES
Normal file
@ -0,0 +1 @@
|
||||
Integrals_Monoelec Integrals_Bielec Bitmask
|
1
plugins/core_integrals/Nuclei
Symbolic link
1
plugins/core_integrals/Nuclei
Symbolic link
@ -0,0 +1 @@
|
||||
/home/giner/qp_bis/quantum_package/src/Nuclei
|
1
plugins/core_integrals/Pseudo
Symbolic link
1
plugins/core_integrals/Pseudo
Symbolic link
@ -0,0 +1 @@
|
||||
/home/giner/qp_bis/quantum_package/src/Pseudo
|
12
plugins/core_integrals/README.rst
Normal file
12
plugins/core_integrals/README.rst
Normal file
@ -0,0 +1,12 @@
|
||||
==============
|
||||
core_integrals
|
||||
==============
|
||||
|
||||
Needed Modules
|
||||
==============
|
||||
.. Do not edit this section It was auto-generated
|
||||
.. by the `update_README.py` script.
|
||||
Documentation
|
||||
=============
|
||||
.. Do not edit this section It was auto-generated
|
||||
.. by the `update_README.py` script.
|
1
plugins/core_integrals/Utils
Symbolic link
1
plugins/core_integrals/Utils
Symbolic link
@ -0,0 +1 @@
|
||||
/home/giner/qp_bis/quantum_package/src/Utils
|
1
plugins/core_integrals/ZMQ
Symbolic link
1
plugins/core_integrals/ZMQ
Symbolic link
@ -0,0 +1 @@
|
||||
/home/giner/qp_bis/quantum_package/src/ZMQ
|
BIN
plugins/core_integrals/core_integrals.main
Executable file
BIN
plugins/core_integrals/core_integrals.main
Executable file
Binary file not shown.
7
plugins/core_integrals/core_integrals.main.irp.f
Normal file
7
plugins/core_integrals/core_integrals.main.irp.f
Normal file
@ -0,0 +1,7 @@
|
||||
program core_integrals
|
||||
implicit none
|
||||
BEGIN_DOC
|
||||
! TODO
|
||||
END_DOC
|
||||
print*,'core energy = ',core_energy
|
||||
end
|
32
plugins/core_integrals/core_quantities.irp.f
Normal file
32
plugins/core_integrals/core_quantities.irp.f
Normal file
@ -0,0 +1,32 @@
|
||||
BEGIN_PROVIDER [double precision, core_energy]
|
||||
implicit none
|
||||
integer :: i,j,k,l
|
||||
core_energy = 0.d0
|
||||
do i = 1, n_core_orb
|
||||
j = list_core(i)
|
||||
core_energy += 2.d0 * mo_mono_elec_integral(j,j) + mo_bielec_integral_jj(j,j)
|
||||
do k = i+1, n_core_orb
|
||||
l = list_core(k)
|
||||
core_energy += 2.d0 * (2.d0 * mo_bielec_integral_jj(j,l) - mo_bielec_integral_jj_exchange(j,l))
|
||||
enddo
|
||||
enddo
|
||||
core_energy += nuclear_repulsion
|
||||
|
||||
END_PROVIDER
|
||||
|
||||
BEGIN_PROVIDER [double precision, core_fock_operator, (mo_tot_num,mo_tot_num)]
|
||||
implicit none
|
||||
integer :: i,j,k,l,m,n
|
||||
double precision :: get_mo_bielec_integral
|
||||
core_fock_operator = 0.d0
|
||||
do i = 1, n_act_orb
|
||||
j = list_act(i)
|
||||
do k = 1, n_act_orb
|
||||
l = list_act(k)
|
||||
do m = 1, n_core_orb
|
||||
n = list_core(m)
|
||||
core_fock_operator(j,l) += 2.d0 * get_mo_bielec_integral(j,n,l,n,mo_integrals_map) - get_mo_bielec_integral(j,n,n,l,mo_integrals_map)
|
||||
enddo
|
||||
enddo
|
||||
enddo
|
||||
END_PROVIDER
|
Loading…
Reference in New Issue
Block a user