LCOV - code coverage report
Current view: top level - src - ri_rs_kp_types.F (source / functions) Coverage Total Hit
Test: CP2K Regtests (git:1be8651) Lines: 0.0 % 1 0
Test Date: 2026-11-24 01:22:08 Functions: 0.0 % 9 0

            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 Integration grid, AO images and radial tables for the periodic RI-RS integrals d_lP(R).
      10              : !> \author Jan Wilhelm
      11              : ! **************************************************************************************************
      12              : MODULE ri_rs_kp_types
      13              :    USE basis_set_types,                 ONLY: gto_basis_set_type
      14              :    USE kinds,                           ONLY: dp
      15              : #include "./base/base_uses.f90"
      16              : 
      17              :    IMPLICIT NONE
      18              :    PRIVATE
      19              : 
      20              :    CHARACTER(len=*), PARAMETER, PRIVATE :: moduleN = 'ri_rs_kp_types'
      21              : 
      22              :    PUBLIC :: ao_image_type, block_class_cache_type, l_block_partition_type, &
      23              :              radial_interpolation_type, uniform_settings_type
      24              : 
      25              :    TYPE uniform_settings_type
      26              :       REAL(dp)                          :: accuracy = 0.0_dp, &
      27              :                                            spacing = 0.0_dp, padding = 0.0_dp, &
      28              :                                            l_block_edge = 0.0_dp
      29              :       INTEGER                           :: counts(3) = 0, subdivisions(3) = 0
      30              :       REAL(dp)                          :: lower(3) = 0.0_dp, &
      31              :                                            origin(3) = 0.0_dp, &
      32              :                                            step(3, 3) = 0.0_dp, &
      33              :                                            weight = 0.0_dp
      34              :    END TYPE uniform_settings_type
      35              : 
      36              :    TYPE l_block_partition_type
      37              :       INTEGER                           :: nblocks = 0
      38              :       INTEGER, ALLOCATABLE              :: first(:), indices(:)
      39              :       REAL(dp), ALLOCATABLE             :: lower(:, :), upper(:, :)
      40              :    END TYPE l_block_partition_type
      41              : 
      42              :    ! Values of atom-centred functions at r - R_A - hT on the points of one class of cell-aligned
      43              :    ! quadrature blocks: the RI potentials V_P (with point bounds) or the AO values phi_mu. A block
      44              :    ! shifted by the lattice vector hT' gives the same values at U = T - T', so all lattice copies
      45              :    ! of the class share them. Slots are indexed by (U, A).
      46              :    TYPE block_class_cache_type
      47              :       INTEGER                           :: block_class = -1, n_slots = 0, n_used = 0
      48              :       INTEGER, ALLOCATABLE              :: keys(:, :), slot(:, :, :, :)
      49              :       LOGICAL, ALLOCATABLE              :: evaluated(:, :)
      50              :       REAL(dp), ALLOCATABLE             :: point_bound(:, :), values(:, :, :)
      51              :    END TYPE block_class_cache_type
      52              : 
      53              :    TYPE ao_image_type
      54              :       TYPE(gto_basis_set_type), POINTER :: basis => NULL()
      55              :       ! Atom A and cell R of the image, centred at R_A + hR.
      56              :       INTEGER                           :: atom = 0, cell(3) = 0
      57              :       REAL(dp)                          :: center(3) = 0.0_dp
      58              :       REAL(dp)                          :: bound = 0.0_dp, decay = 0.0_dp
      59              :       REAL(dp), ALLOCATABLE             :: primary(:, :)
      60              :       INTEGER, ALLOCATABLE              :: primary_l(:)
      61              :       REAL(dp), ALLOCATABLE             :: envelope_exponents(:), &
      62              :                                            radial_envelope(:, :)
      63              :    END TYPE ao_image_type
      64              : 
      65              :    ! Per-atom interpolation tables for the erfc kernel.
      66              :    TYPE radial_interpolation_type
      67              :       REAL(dp), ALLOCATABLE             :: short_abscissae(:)
      68              :       REAL(dp), ALLOCATABLE             :: coefficients(:, :), &
      69              :                                            series(:, :, :), &
      70              :                                            short_series(:, :, :), &
      71              :                                            short_moments(:, :, :, :)
      72              :       ! Radial value and derivative, indexed (2, primitive/angular channel,
      73              :       ! squared-radius index).
      74              :       REAL(dp), ALLOCATABLE             :: mesh_moments(:, :, :)
      75              :       INTEGER, ALLOCATABLE              :: mesh_first(:, :), &
      76              :                                            spherical_mesh_first(:, :)
      77              :       ! An optional exact factorization of primitive Cartesian rows through
      78              :       ! spherical RI functions.
      79              :       REAL(dp), ALLOCATABLE             :: spherical_selection(:, :), &
      80              :                                            spherical_angular(:, :, :, :), &
      81              :                                            spherical_primitive(:, :, :)
      82              :       LOGICAL                           :: spherical_factorized = .FALSE.
      83              :       REAL(dp)                          :: mesh_spacing = 0.0_dp, &
      84              :                                            mesh_offset = 0.0_dp, &
      85              :                                            mesh_exponent = 0.0_dp
      86              :       REAL(dp)                          :: attenuation = 0.0_dp
      87              :       ! Bound on all |V_P(r)| of the atom on radial intervals, indexed from r = 0.
      88              :       REAL(dp), ALLOCATABLE             :: short_bounds(:)
      89              :    END TYPE radial_interpolation_type
      90              : 
      91            0 : END MODULE ri_rs_kp_types
        

Generated by: LCOV version 2.0-1