(git:27c966b)
Loading...
Searching...
No Matches
gw_utils Module Reference

Functions/Subroutines

subroutine, public create_and_init_bs_env_for_gw (qs_env, bs_env, bs_sec)
 Initializes the GW environment from the input and electronic-structure data.
subroutine, public compute_xkp (xkp, ikp_start, ikp_end, grid)
 ...
subroutine, public add_r (cell_1, cell_2, index_to_cell, cell_1_plus_2, cell_found, cell_to_index, i_cell_1_plus_2)
 ...
subroutine, public is_cell_in_index_to_cell (cell, index_to_cell, cell_found)
 ...
subroutine, public de_init_bs_env (qs_env, bs_env)
 Releases the memory-heavy GW intermediates that cannot be freed in bs_env_release, retaining the 3c neighbor list only when an AO-RI RT-BSE self-energy still needs it.
subroutine, public rtbse_resolve_rirs_flag (qs_env, bs_env, rirs_kernel)
 Resolve the linRTBSE RI-RS kernel switch from the KERNEL_RI input and the GW default.
subroutine, public analyt_conti_and_print (bs_env, sigma_c_ikp_n_freq, sigma_x_ikp_n, v_xc_ikp_n, eigenval_scf, ikp, ispin, i_iter)
 ...
subroutine, public g_occ_vir (bs_env, tau, fm_g_gamma, ispin, occ, vir)
 Build the real Gamma occupied or virtual one-particle propagator.

Detailed Description

History
01.2026 Maximilian Graml: add more bounds to exploit sparsity in 3c integrals, fixes
Author
Jan Wilhelm
Date
07.2023

Function/Subroutine Documentation

◆ create_and_init_bs_env_for_gw()

subroutine, public gw_utils::create_and_init_bs_env_for_gw ( type(qs_environment_type), pointer qs_env,
type(post_scf_bandstructure_type), pointer bs_env,
type(section_vals_type), pointer bs_sec )

Initializes the GW environment from the input and electronic-structure data.

Parameters
qs_env...
bs_envBand-structure environment containing GW parameters.
bs_secBAND_STRUCTURE input section

Definition at line 166 of file gw_utils.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compute_xkp()

subroutine, public gw_utils::compute_xkp ( real(kind=dp), dimension(:, :), pointer xkp,
integer ikp_start,
integer ikp_end,
integer, dimension(3) grid )

...

Parameters
xkp...
ikp_start...
ikp_end...
grid...

Definition at line 1244 of file gw_utils.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ add_r()

subroutine, public gw_utils::add_r ( integer, dimension(3) cell_1,
integer, dimension(3) cell_2,
integer, dimension(:, :) index_to_cell,
integer, dimension(3) cell_1_plus_2,
logical cell_found,
integer, dimension(:, :, :), intent(in), optional, pointer cell_to_index,
integer, intent(out), optional i_cell_1_plus_2 )

...

Parameters
cell_1...
cell_2...
index_to_cell...
cell_1_plus_2...
cell_found...
cell_to_index...
i_cell_1_plus_2...

Definition at line 3069 of file gw_utils.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_cell_in_index_to_cell()

subroutine, public gw_utils::is_cell_in_index_to_cell ( integer, dimension(3) cell,
integer, dimension(:, :) index_to_cell,
logical cell_found )

...

Parameters
cell...
index_to_cell...
cell_found...

Definition at line 3109 of file gw_utils.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ de_init_bs_env()

subroutine, public gw_utils::de_init_bs_env ( type(qs_environment_type), pointer qs_env,
type(post_scf_bandstructure_type), pointer bs_env )

Releases the memory-heavy GW intermediates that cannot be freed in bs_env_release, retaining the 3c neighbor list only when an AO-RI RT-BSE self-energy still needs it.

Parameters
qs_env...
bs_env...

Definition at line 3561 of file gw_utils.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rtbse_resolve_rirs_flag()

subroutine, public gw_utils::rtbse_resolve_rirs_flag ( type(qs_environment_type), pointer qs_env,
type(post_scf_bandstructure_type), pointer bs_env,
logical, intent(out), optional rirs_kernel )

Resolve the linRTBSE RI-RS kernel switch from the KERNEL_RI input and the GW default.

Parameters
qs_env...
bs_env...
rirs_kernel(optional) .TRUE. if the Hartree + SEX kernels use the RI-RS grid backend
Author
Maximilian Graml
Note
Single source of truth shared by create_rtbse_env (sets the flag) and de_init_bs_env (decides whether to retain nl_3c). KERNEL_RI=DEFAULT follows bs_envdo_gw_ri_rs; RS/AO force; forced .FALSE. for non-linearized (full) RT-BSE (warn on explicit RS).

Definition at line 3604 of file gw_utils.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ analyt_conti_and_print()

subroutine, public gw_utils::analyt_conti_and_print ( type(post_scf_bandstructure_type), pointer bs_env,
complex(kind=dp), dimension(:, :), intent(in) sigma_c_ikp_n_freq,
real(kind=dp), dimension(:) sigma_x_ikp_n,
real(kind=dp), dimension(:) v_xc_ikp_n,
real(kind=dp), dimension(:) eigenval_scf,
integer ikp,
integer ispin,
integer, intent(in), optional i_iter )

...

Parameters
bs_env...
Sigma_c_ikp_n_freqComplex diagonal self-energy at the signed fit frequencies.
Sigma_x_ikp_n...
V_xc_ikp_n...
eigenval_scf...
ikp...
ispin...
i_iter...

Definition at line 3651 of file gw_utils.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ g_occ_vir()

subroutine, public gw_utils::g_occ_vir ( type(post_scf_bandstructure_type), pointer bs_env,
real(kind=dp) tau,
type(cp_fm_type) fm_g_gamma,
integer ispin,
logical occ,
logical vir )

Build the real Gamma occupied or virtual one-particle propagator.

Parameters
bs_envMO coefficients, eigenvalues and reusable work matrix
tauimaginary time
fm_G_Gammaoutput AO propagator
ispinspin channel
occselect the occupied sector
virselect the virtual sector

Definition at line 4188 of file gw_utils.F.

Here is the caller graph for this function: