Line data Source code
1 : !--------------------------------------------------------------------------------------------------!
2 : ! CP2K: A general program to perform molecular dynamics simulations !
3 : ! Copyright 2000-2026 CP2K developers group <https://cp2k.org> !
4 : ! !
5 : ! SPDX-License-Identifier: GPL-2.0-or-later !
6 : !--------------------------------------------------------------------------------------------------!
7 :
8 : ! **************************************************************************************************
9 : !> \brief Primitive Gaussian pairs and products for four-center integrals.
10 : ! **************************************************************************************************
11 : MODULE four_center_integral_types
12 : USE kinds, ONLY: dp
13 :
14 : IMPLICIT NONE
15 : PRIVATE
16 :
17 : PUBLIC :: eri4_cell_type, eri4_contraction_type, eri4_screen_coeff_type, eri4_pgf_image_type, &
18 : eri4_pgf_pair_type, eri4_image_group_type
19 :
20 : ! **************************************************************************************************
21 : !> \brief Contraction data for one angular momentum in a basis set.
22 : TYPE eri4_contraction_type
23 : REAL(dp), ALLOCATABLE :: angular(:, :) ! Cartesian by spherical component
24 : REAL(dp), ALLOCATABLE :: weights(:, :) ! contraction by primitive
25 : END TYPE eri4_contraction_type
26 :
27 : ! **************************************************************************************************
28 : TYPE eri4_cell_type
29 : REAL(dp) :: cell(3) = 0.0_dp
30 : REAL(dp) :: cell_r(3) = 0.0_dp
31 : END TYPE eri4_cell_type
32 :
33 : ! **************************************************************************************************
34 : TYPE eri4_screen_coeff_type
35 : REAL(dp) :: x(2) = 0.0_dp
36 : END TYPE eri4_screen_coeff_type
37 :
38 : ! **************************************************************************************************
39 : TYPE eri4_pgf_image_type
40 : REAL(dp) :: ra(3) = 0.0_dp, rb(3) = 0.0_dp
41 : REAL(dp) :: S1234 = 0.0_dp
42 : REAL(dp) :: P(3) = 0.0_dp
43 : REAL(dp) :: R = 0.0_dp
44 : REAL(dp) :: pgf_max = 0.0_dp
45 : END TYPE eri4_pgf_image_type
46 :
47 : ! **************************************************************************************************
48 : TYPE eri4_pgf_pair_type
49 : TYPE(eri4_pgf_image_type), DIMENSION(:), POINTER &
50 : :: image_list => NULL()
51 : INTEGER :: nimages = 0
52 : REAL(dp) :: zetapzetb = 0.0_dp
53 : REAL(dp) :: ZetaInv = 0.0_dp
54 : REAL(dp) :: zeta = 0.0_dp, zetb = 0.0_dp
55 : INTEGER :: ipgf = 0, jpgf = 0
56 : END TYPE eri4_pgf_pair_type
57 :
58 : ! **************************************************************************************************
59 : !> \brief Range of a multi-image group and its pair displacements before translation.
60 : TYPE eri4_image_group_type
61 : INTEGER :: first = 0, last = 0
62 : REAL(dp) :: displacements(3, 2) = 0.0_dp
63 : END TYPE eri4_image_group_type
64 :
65 0 : END MODULE four_center_integral_types
|