26#include "./base/base_uses.f90"
32 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'qs_kernel_types'
34 LOGICAL,
PARAMETER,
PRIVATE :: debug_this_module = .false.
36 INTEGER,
PARAMETER,
PRIVATE :: nderivs = 3
37 INTEGER,
PARAMETER,
PRIVATE :: maxspins = 2
56 LOGICAL :: do_exck = .false.
60 REAL(kind=
dp) :: alpha = -1.0_dp, beta = -1.0_dp
62 LOGICAL :: deriv2_analytic = .false.
63 LOGICAL :: deriv3_analytic = .false.
68 TYPE(
hfx_type),
DIMENSION(:, :),
POINTER :: x_data => null()
95 IF (
ASSOCIATED(kernel_env))
THEN
96 IF (
ASSOCIATED(kernel_env%xc_rho1_set))
THEN
98 DEALLOCATE (kernel_env%xc_rho1_set)
100 IF (
ASSOCIATED(kernel_env%rho0_struct))
THEN
102 DEALLOCATE (kernel_env%rho0_struct)
105 IF (
ASSOCIATED(kernel_env%xc_rho_set))
THEN
107 DEALLOCATE (kernel_env%xc_rho_set)
109 IF (
ASSOCIATED(kernel_env%x_data))
THEN
112 IF (
ASSOCIATED(kernel_env%admm_env))
THEN
115 IF (
ASSOCIATED(kernel_env%admm_control))
THEN
Types and set/get functions for auxiliary density matrix methods.
subroutine, public admm_env_release(admm_env)
releases the ADMM environment, cleans up all types
Defines control structures, which contain the parameters and the settings for the DFT-based calculati...
subroutine, public admm_control_release(admm_control)
...
Types and set/get functions for HFX.
subroutine, public hfx_release(x_data)
This routine deallocates all data structures
Defines the basic variable types.
integer, parameter, public dp
contains the types and subroutines for dealing with the lri_env lri : local resolution of the identit...
subroutine, public release_kernel_env(kernel_env)
Release kernel environment.
superstucture that hold various representations of the density and keeps track of which ones are vali...
subroutine, public qs_rho_release(rho_struct)
releases a rho_struct by decreasing the reference count by one and deallocating if it reaches 0 (to b...
Simplified Tamm Dancoff approach (sTDA).
represent a group ofunctional derivatives
subroutine, public xc_dset_release(derivative_set)
releases a derivative set
subroutine, public xc_rho_set_release(rho_set, pw_pool)
releases the given rho_set
stores some data used in wavefunction fitting
stores some data used in construction of Kohn-Sham matrix
Collection of variables required to evaluate adiabatic TDDFPT kernel.
Type to hold environments for the different kernels.
keeps the density in various representations, keeping track of which ones are valid.
A derivative set contains the different derivatives of a xc-functional in form of a linked list.
represent a density, with all the representation and data needed to perform a functional evaluation