61#include "./base/base_uses.f90"
67 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'bse_main'
95 Eigenval, Eigenval_scf, homo, virtual, dimen_RI, dimen_RI_red, &
96 gw_corr_lev_occ, bse_lev_virt, qs_env, unit_nr)
99 TYPE(
cp_fm_type),
DIMENSION(:),
INTENT(IN) :: fm_s_ia_full, fm_s_ij_full, fm_s_ab_full
101 REAL(kind=
dp),
DIMENSION(:, :, :),
INTENT(IN) :: eigenval, eigenval_scf
102 INTEGER,
DIMENSION(:),
INTENT(IN) :: homo, virtual
103 INTEGER,
INTENT(IN) :: dimen_ri, dimen_ri_red, gw_corr_lev_occ
104 INTEGER,
DIMENSION(:),
INTENT(IN) :: bse_lev_virt
106 INTEGER,
INTENT(IN) :: unit_nr
108 CHARACTER(LEN=*),
PARAMETER :: routinen =
'prepare_bse_env_from_ri_rpa_gw'
110 INTEGER :: handle, ispin, n_window, nspins
111 INTEGER,
ALLOCATABLE,
DIMENSION(:) :: n_mo
112 REAL(kind=
dp),
ALLOCATABLE,
DIMENSION(:) :: eigenval_dft_spin, eigenval_qp_spin
116 CALL timeset(routinen, handle)
123 bse_section => bse_env%bse_section
130 CALL start_bse_env(bse_env, nspins, dimen_ri, dimen_ri_red, gw_corr_lev_occ, bse_lev_virt, unit_nr)
133 ALLOCATE (n_mo(nspins))
134 n_mo(:) = homo(:) + virtual(:)
136 bse_env%bse_cutoff_empty, window, warn=.true.)
139 ALLOCATE (bse_env%homo_red(nspins), bse_env%virt_red(nspins), bse_env%homo_full(nspins))
140 ALLOCATE (bse_env%fm_S_ia(nspins), bse_env%fm_S_ij(nspins), bse_env%fm_S_ab(nspins))
141 bse_env%homo_full(:) = homo(:)
145 eigenval_scf(:, 1, ispin), eigenval(:, 1, ispin), &
146 eigenval_dft_spin, eigenval_qp_spin, homo(ispin), virtual(ispin), &
147 dimen_ri, unit_nr, ispin, bse_env, window, nspins == 1)
150 n_window =
SIZE(eigenval_qp_spin)
151 ALLOCATE (bse_env%eigenval_dft(n_window, nspins), bse_env%eigenval_qp(n_window, nspins))
153 bse_env%eigenval_dft(:, ispin) = eigenval_dft_spin(:)
154 bse_env%eigenval_qp(:, ispin) = eigenval_qp_spin(:)
155 DEALLOCATE (eigenval_dft_spin, eigenval_qp_spin)
159 CALL invert_static_screening(fm_q, dimen_ri_red, bse_env%fm_eps_inv)
162 CALL finish_bse_env(bse_env, qs_env, fm_s_ia_full(1)%matrix_struct%para_env)
164 CALL timestop(handle)
190 eigenval_qp, eigenval_dft, homo_full, homo_red, virt_red, &
191 dimen_RI, qs_env, unit_nr)
194 TYPE(
cp_fm_type),
ALLOCATABLE,
DIMENSION(:), &
195 INTENT(INOUT) :: fm_s_ia, fm_s_ij, fm_s_ab
197 REAL(kind=
dp),
DIMENSION(:, :),
INTENT(IN) :: eigenval_qp, eigenval_dft
198 INTEGER,
DIMENSION(:),
INTENT(IN) :: homo_full, homo_red, virt_red
199 INTEGER,
INTENT(IN) :: dimen_ri
201 INTEGER,
INTENT(IN) :: unit_nr
203 CHARACTER(LEN=*),
PARAMETER :: routinen =
'prepare_bse_env_from_bandstructure_gw'
205 INTEGER :: handle, ispin, n_window, nspins
207 CALL timeset(routinen, handle)
210 IF (.NOT.
ASSOCIATED(bse_env%bse_section)) cpabort(
"BSE settings not read: read_bse_section comes first")
212 nspins =
SIZE(homo_full)
213 IF (
SIZE(fm_s_ia) /= nspins .OR.
SIZE(eigenval_qp, 2) /= nspins)
THEN
214 cpabort(
"BSE needs one set of RI integrals and one set of energies per spin")
217 CALL start_bse_env(bse_env, nspins, dimen_ri, dimen_ri, maxval(homo_red), virt_red, unit_nr)
219 ALLOCATE (bse_env%homo_red(nspins), bse_env%virt_red(nspins), bse_env%homo_full(nspins))
220 bse_env%homo_full(:) = homo_full(:)
221 bse_env%homo_red(:) = homo_red(:)
222 bse_env%virt_red(:) = virt_red(:)
223 n_window =
SIZE(eigenval_qp, 1)
226 IF (homo_red(ispin) + virt_red(ispin) /= n_window)
THEN
227 cpabort(
"Occupied and virtual levels do not fill the BSE window")
230 ALLOCATE (bse_env%eigenval_dft(n_window, nspins), bse_env%eigenval_qp(n_window, nspins))
231 bse_env%eigenval_dft(:, :) = eigenval_dft(:, :)
232 bse_env%eigenval_qp(:, :) = eigenval_qp(:, :)
235 CALL move_alloc(fm_s_ia, bse_env%fm_S_ia)
236 CALL move_alloc(fm_s_ij, bse_env%fm_S_ij)
237 CALL move_alloc(fm_s_ab, bse_env%fm_S_ab)
239 CALL cp_fm_create(bse_env%fm_eps_inv, fm_eps_inv%matrix_struct)
243 CALL finish_bse_env(bse_env, qs_env, bse_env%fm_S_ia(1)%matrix_struct%para_env)
245 CALL timestop(handle)
260 SUBROUTINE start_bse_env(bse_env, nspins, dimen_RI, dimen_RI_red, gw_corr_lev_occ, gw_corr_lev_virt, unit_nr)
263 INTEGER,
INTENT(IN) :: nspins, dimen_ri, dimen_ri_red, &
265 INTEGER,
DIMENSION(:),
INTENT(IN) :: gw_corr_lev_virt
266 INTEGER,
INTENT(IN) :: unit_nr
270 bse_env%nspins = nspins
271 bse_env%dimen_RI = dimen_ri
272 bse_env%dimen_RI_red = dimen_ri_red
273 bse_env%gw_corr_lev_occ = gw_corr_lev_occ
274 ALLOCATE (bse_env%gw_corr_lev_virt(nspins))
275 bse_env%gw_corr_lev_virt(:) = gw_corr_lev_virt(:)
278 bse_env%do_iterdiag = bse_env%bse_diag_method ==
bse_iterdiag
279 bse_env%do_fulldiag = bse_env%bse_diag_method ==
bse_fulldiag
280 bse_env%do_tda = bse_env%flag_tda ==
bse_tda .OR. bse_env%flag_tda ==
bse_both
281 bse_env%do_abba = bse_env%flag_tda ==
bse_abba .OR. bse_env%flag_tda ==
bse_both
288 bse_env%bse_debug_print = .true.
291 END SUBROUTINE start_bse_env
300 SUBROUTINE finish_bse_env(bse_env, qs_env, para_env_slabs)
306 CHARACTER(LEN=*),
PARAMETER :: routinen =
'finish_bse_env'
308 INTEGER :: handle, nspins
309 INTEGER,
ALLOCATABLE,
DIMENSION(:) :: n_ov, offsets
313 CALL timeset(routinen, handle)
315 nspins = bse_env%nspins
318 bse_env%para_env => para_env_slabs
319 CALL get_qs_env(qs_env, subsys=bse_env%subsys, pw_env=bse_env%pw_env, &
320 dft_control=bse_env%dft_control, mos=bse_env%mos, &
321 exstate_env=bse_env%exstate_env)
323 NULLIFY (input, poisson_section)
327 bse_env%n_periodic_poisson = count(poisson_params%periodic == 1)
328 CALL bse_env%para_env%sync()
331 IF (bse_env%do_iterdiag)
THEN
332 cpabort(
"Iterative BSE is not yet available for open-shell references")
334 CALL cp_warn(__location__, &
335 "Open-shell (UKS/LSD) BSE is a recent addition and has not been "// &
336 "extensively validated. Verify results carefully before using them "// &
337 "for production calculations.")
340 ALLOCATE (n_ov(nspins), offsets(nspins))
342 DEALLOCATE (n_ov, offsets)
346 CALL get_multipoles_ao(qs_env, 1, bse_env%matrix_dipole_ao, bse_env%multipole_ref_point)
347 IF (bse_env%num_print_exc_descr /= 0 .AND. nspins == 1)
THEN
348 CALL get_multipoles_ao(qs_env, 2, bse_env%matrix_quadpole_ao, bse_env%multipole_ref_point)
351 CALL timestop(handle)
353 END SUBROUTINE finish_bse_env
362 SUBROUTINE invert_static_screening(fm_Q, dimen_RI_red, fm_eps_inv)
365 INTEGER,
INTENT(IN) :: dimen_ri_red
368 CHARACTER(LEN=*),
PARAMETER :: routinen =
'invert_static_screening'
370 INTEGER :: handle, info_chol
373 CALL timeset(routinen, handle)
385 IF (info_chol /= 0)
THEN
386 CALL cp_abort(__location__,
'Cholesky decomposition failed for static polarization in BSE')
392 CALL timestop(handle)
394 END SUBROUTINE invert_static_screening
406 TYPE(
cp_fm_type),
DIMENSION(:),
INTENT(IN) :: mo_coeff
407 INTEGER,
INTENT(IN) :: unit_nr
409 CHARACTER(LEN=*),
PARAMETER :: routinen =
'bse_solve'
411 INTEGER :: handle, ispin, n_window, nspins
412 REAL(kind=
dp) :: diag_runtime_est
413 REAL(kind=
dp),
ALLOCATABLE,
DIMENSION(:) :: eigenval_joint
414 TYPE(
cp_fm_type) :: fm_a_bse, fm_b_bse, fm_c_bse, &
415 fm_inv_sqrt_a_minus_b, &
419 CALL timeset(routinen, handle)
421 nspins = bse_env%nspins
427 n_window =
SIZE(bse_env%eigenval_qp, 1)
428 ALLOCATE (eigenval_joint(n_window*nspins))
430 IF (bse_env%use_ks_energies)
THEN
431 eigenval_joint((ispin - 1)*n_window + 1:ispin*n_window) = bse_env%eigenval_dft(:, ispin)
433 eigenval_joint((ispin - 1)*n_window + 1:ispin*n_window) = bse_env%eigenval_qp(:, ispin)
439 ALLOCATE (bse_env%fm_S_bar_ia(nspins), bse_env%fm_S_bar_ij(nspins))
442 CALL screen_slabs(bse_env%fm_eps_inv, bse_env%fm_S_ij(ispin), bse_env%fm_S_ia(ispin), &
443 bse_env%dimen_RI_red, bse_env%homo_red(ispin), bse_env%virt_red(ispin), &
444 bse_env%fm_S_bar_ij(ispin), bse_env%fm_S_bar_ia(ispin), bse_env%do_abba)
449 IF (bse_env%do_iterdiag)
THEN
451 bse_env%homo_red, bse_env%virt_red, bse_env%homo_full, &
452 bse_env%dimen_RI, bse_env%do_tda, bse_env%do_abba, &
453 bse_env, mo_coeff, unit_nr)
456 IF (bse_env%do_fulldiag)
THEN
458 bse_env%para_env, diag_runtime_est)
459 CALL create_a_and_b(bse_env%fm_S_ia, bse_env%fm_S_ij, bse_env%fm_S_ab, &
460 bse_env%fm_S_bar_ia, bse_env%fm_S_bar_ij, fm_a_bse, fm_b_bse, &
461 bse_env%do_abba, eigenval_joint, unit_nr, bse_env%homo_red, &
462 bse_env%virt_red, bse_env%dimen_RI, bse_env)
463 IF (bse_env%do_abba)
THEN
465 fm_sqrt_a_minus_b, fm_inv_sqrt_a_minus_b, &
466 unit_nr, bse_env, diag_runtime_est)
469 tddfpt_control => bse_env%dft_control%tddfpt2_control
471 IF (bse_env%do_tda .AND. (.NOT. tddfpt_control%do_bse))
THEN
472 CALL diagonalize_a(fm_a_bse, bse_env%homo_red, bse_env%virt_red, bse_env%homo_full, &
473 unit_nr, diag_runtime_est, bse_env, mo_coeff)
476 IF (bse_env%do_abba)
THEN
477 CALL diagonalize_c(fm_c_bse, bse_env%homo_red, bse_env%virt_red, bse_env%homo_full, &
478 fm_sqrt_a_minus_b, fm_inv_sqrt_a_minus_b, &
479 unit_nr, diag_runtime_est, bse_env, mo_coeff)
484 DEALLOCATE (eigenval_joint)
486 IF (unit_nr > 0)
THEN
487 WRITE (unit_nr,
'(T2,A4,T7,A53)')
'BSE|',
'The BSE was successfully calculated. Have a nice day!'
490 CALL timestop(handle)
508 INTEGER,
DIMENSION(:),
INTENT(IN) :: homo
510 INTEGER,
INTENT(IN) :: unit_nr
512 CHARACTER(LEN=*),
PARAMETER :: routinen =
'bse_fulldiag_memory_check'
514 CHARACTER(LEN=16) :: left_str, mem_str
515 CHARACTER(LEN=80) :: remedy
516 INTEGER :: handle, ispin, n_ov_joint, nspins
517 REAL(kind=
dp) :: mem_est_gb, mem_left_gb
519 CALL timeset(routinen, handle)
524 n_ov_joint = n_ov_joint + (homo(ispin) - window%first_mo + 1)*(window%last_mo - homo(ispin))
527 REAL(para_env%num_pe, kind=
dp)
531 IF (unit_nr > 0)
THEN
532 WRITE (unit_nr,
'(T2,A4)')
'BSE|'
533 WRITE (unit_nr,
'(T2,A4,T7,A)')
'BSE|',
'Early memory check for the full diagonalization'
534 WRITE (unit_nr,
'(T2,A4,T7,A,T71,I10)')
'BSE|',
'Transition pairs in the active window (DFT axis)', &
536 WRITE (unit_nr,
'(T2,A4,T7,A,T67,F14.3)')
'BSE|',
'Peak memory estimate per MPI rank (GB)', mem_est_gb
537 WRITE (unit_nr,
'(T2,A4,T7,A,T67,F14.3)')
'BSE|',
'Memory per MPI rank for the BSE, MEMORY_PER_PROC (GB)', &
538 bse_env%memory_per_proc_gb
539 WRITE (unit_nr,
'(T2,A4,T7,A,T67,F14.3)')
'BSE|',
'Left after the memory the rank holds (GB)', mem_left_gb
540 WRITE (unit_nr,
'(T2,A4)')
'BSE|'
543 IF (mem_est_gb > mem_left_gb)
THEN
544 WRITE (mem_str,
'(F16.3)') mem_est_gb
545 WRITE (left_str,
'(F16.3)') mem_left_gb
547 IF (nspins == 1)
THEN
548 remedy =
"more MPI ranks, a tighter window, ITERDIAG, a higher MEMORY_PER_PROC"
550 remedy =
"more MPI ranks, a tighter window, a higher MEMORY_PER_PROC"
552 CALL cp_abort(__location__, &
553 "BSE full diagonalization: the estimate of "//trim(adjustl(mem_str))// &
554 " GB per MPI rank exceeds the "//trim(adjustl(left_str))// &
555 " GB left of MEMORY_PER_PROC. Try one of: "//trim(remedy)//
".")
558 CALL timestop(handle)
575 INTEGER,
INTENT(IN) :: unit_nr
578 INTEGER,
ALLOCATABLE,
DIMENSION(:) :: homo
582 CALL bse_window_from_mos(mos, bse_env%bse_cutoff_occ, bse_env%bse_cutoff_empty, window, warn=.false.)
583 ALLOCATE (homo(
SIZE(mos)))
584 DO ispin = 1,
SIZE(mos)
Routines for the full diagonalization of GW + Bethe-Salpeter for computing electronic excitations.
subroutine, public create_a_and_b(fm_s_ia, fm_s_ij, fm_s_ab, fm_s_bar_ia, fm_s_bar_ij, fm_a, fm_b, do_abba, eigenval, unit_nr, homo, virtual, dimen_ri, bse_env)
Explicit A, and B for ABBA, from the slabs the screening method contracts: the bare ones for TDHF and...
subroutine, public diagonalize_a(fm_a, homo, virtual, homo_irred, unit_nr, diag_est, bse_env, mo_coeff)
Solving hermitian eigenvalue equation A X^n = Ω^n X^n.
subroutine, public create_hermitian_form_of_abba(fm_a, fm_b, fm_c, fm_sqrt_a_minus_b, fm_inv_sqrt_a_minus_b, unit_nr, bse_env, diag_est)
Construct Matrix C=(A-B)^0.5 (A+B) (A-B)^0.5 to solve full BSE matrix as a hermitian problem (cf....
subroutine, public diagonalize_c(fm_c, homo, virtual, homo_irred, fm_sqrt_a_minus_b, fm_inv_sqrt_a_minus_b, unit_nr, diag_est, bse_env, mo_coeff)
Solving eigenvalue equation C Z^n = (Ω^n)^2 Z^n . Here, the eigenvectors Z^n relate to X^n via Eq....
Iterative solution of the Bethe-Salpeter equation: the block Davidson solvers on top of the matrix-fr...
subroutine, public solve_bse_iteratively(eigenval_reduced, homo_red_arr, virt_red_arr, homo, dimen_ri, do_tda, do_abba, bse_env, mo_coeff, unit_nr)
Lowest excitations of a closed-shell reference from the block Davidson solvers on top of the matrix-f...
Main routines for GW + Bethe-Salpeter for computing electronic excitations: a GW path prepares the BS...
subroutine, public bse_fulldiag_memory_check_from_mos(bse_env, mos, para_env, unit_nr)
bse_fulldiag_memory_check for a caller that holds MO sets: the window on the DFT axis from their eige...
subroutine, public prepare_bse_env_from_bandstructure_gw(bse_env, fm_s_ia, fm_s_ij, fm_s_ab, fm_eps_inv, eigenval_qp, eigenval_dft, homo_full, homo_red, virt_red, dimen_ri, qs_env, unit_nr)
Entry for the BSE of PROPERTIESBANDSTRUCTUREGW (PROPERTIESBSE), which hands over window-sized slabs a...
subroutine, public bse_solve(bse_env, mo_coeff, unit_nr)
Solves the BSE on a prepared environment: input normalisation, the screened slabs from [1+Q(0)]^-1,...
subroutine, public prepare_bse_env_from_ri_rpa_gw(bse_env, fm_s_ia_full, fm_s_ij_full, fm_s_ab_full, fm_q, eigenval, eigenval_scf, homo, virtual, dimen_ri, dimen_ri_red, gw_corr_lev_occ, bse_lev_virt, qs_env, unit_nr)
Entry for the BSE of RI_RPAGW, which hands over the slabs of all its GW levels and the static polariz...
subroutine, public bse_fulldiag_memory_check(bse_env, window, homo, para_env, unit_nr)
Early memory check for the full diagonalization, before any GW work: the window on the DFT axis gives...
Matrix-free application of the BSE matrices A and B to trial vectors from RI slabs that are sliced al...
real(kind=dp) function, public bse_memory_left_gb(memory_per_proc_gb, para_env)
What MEMORY_PER_PROC leaves to a step: the resolved memory per MPI rank minus the memory the rank hol...
subroutine, public bse_resolve_memory_per_proc(memory_per_proc_gb, para_env, unit_nr)
MEMORY_PER_PROC of the BSE as a number: the keyword's value, or for -1 the memory the rank holds plus...
Routines for printing information in context of the BSE calculation.
subroutine, public print_bse_start_flag(bse_tda, bse_abba, unit_nr)
...
The BSE environment: the settings of the &BSE section and the state a GW path prepares for the solver...
Auxiliary routines for GW + Bethe-Salpeter for computing electronic excitations.
subroutine, public adapt_bse_screening(bse_env, unit_nr)
Resolve SCREENING_IN_W and its factor before constructing the dielectric matrix or slabs.
subroutine, public truncate_bse_matrices(fm_s_ia_full, fm_s_ij_full, fm_s_ab_full, eigenval_scf, eigenval, eigenval_reduced_scf, eigenval_reduced_qp, homo, virtual, dimen_ri, unit_nr, ispin, bse_env, window, print_window)
Determines indices within the given energy cutoffs and truncates Eigenvalues and matrices.
subroutine, public estimate_bse_resources(n_ov_joint, unit_nr, bse_abba, para_env, diag_runtime_est)
Roughly estimates the needed runtime and memory during the BSE run.
subroutine, public adapt_bse_input_params(homo, virtual, unit_nr, bse_env)
Checks BSE input section and adapts them if necessary.
pure real(kind=dp) function, public fulldiag_memory_estimate_gb(n_ov_joint, do_abba)
Peak memory of the full diagonalization in GB, all ranks together: n_ov^2 doubles times the matrices ...
subroutine, public bse_window_from_dft(eigenval_scf, n_mo, homo, cutoff_occ, cutoff_empty, window, warn)
The active MO window on the DFT axis: one absolute MO range for every spin; when the spin windows dif...
subroutine, public screen_slabs(fm_eps_inv, fm_s_ij, fm_s_ia, dimen_ri_red, homo, virtual, fm_s_bar_ij, fm_s_bar_ia, do_abba)
The screened slabs \bar{B}^P_ij = sum_Q [1+Q(0)]^-1_PQ B^Q_ij and \bar{B}^P_ia = sum_Q [1+Q(0)]^-1_PQ...
subroutine, public get_bse_spin_block_layout(homo_red, virt_red, n_ov, offsets, n_ov_joint)
Spin-block layout for the open-shell (joint) BSE matrix: per-spin OV-pair counts and the block offset...
subroutine, public bse_window_from_mos(mos, cutoff_occ, cutoff_empty, window, warn)
The active MO window of bse_window_from_dft, from the DFT eigenvalues of the MO sets.
Defines control structures, which contain the parameters and the settings for the DFT-based calculati...
Basic linear algebra operations for full matrices.
subroutine, public cp_fm_add_on_diag(matrix, alpha, n_active)
Adds a scalar to the diagonal of a distributed real full matrix.
various cholesky decomposition related routines
subroutine, public cp_fm_cholesky_invert(matrix, n, info_out, work)
Replace the upper Cholesky factor by the upper triangle of the inverse. When work is provided,...
subroutine, public cp_fm_cholesky_decompose(matrix, n, info_out)
used to replace a symmetric positive def. matrix M with its cholesky decomposition U: M = U^T * U,...
represent a full matrix distributed on many processors
subroutine, public cp_fm_create(matrix, matrix_struct, name, nrow, ncol, set_zero)
creates a new full matrix with the given structure
various routines to log and control the output. The idea is that decisions about where to log should ...
type(cp_logger_type) function, pointer, public cp_get_default_logger()
returns the default logger
routines to handle the output, The idea is to remove the decision of wheter to output and what to out...
integer, parameter, public debug_print_level
Defines the basic variable types.
integer, parameter, public dp
Interface to the message passing library MPI.
Common selection and union operations for contiguous molecular-orbital windows.
functions related to the poisson solver on regular grids
subroutine, public get_qs_env(qs_env, atomic_kind_set, qs_kind_set, cell, super_cell, cell_ref, use_ref_cell, kpoints, dft_control, mos, sab_orb, sab_all, qmmm, qmmm_periodic, mimic, sac_ae, sac_ppl, sac_lri, sap_ppnl, sab_vdw, sab_scp, sap_oce, sab_lrc, sab_se, sab_xtbe, sab_tbe, sab_core, sab_xb, sab_xtb_pp, sab_xtb_nonbond, sab_almo, sab_kp, sab_kp_nosym, sab_cneo, particle_set, energy, force, matrix_h, matrix_h_im, matrix_ks, matrix_ks_im, matrix_vxc, run_rtp, rtp, matrix_h_kp, matrix_h_im_kp, matrix_ks_kp, matrix_ks_im_kp, matrix_vxc_kp, kinetic_kp, matrix_s_kp, matrix_w_kp, matrix_s_ri_aux_kp, matrix_s, matrix_s_ri_aux, matrix_w, matrix_p_mp2, matrix_p_mp2_admm, matrix_vhxc, rho, rho_xc, pw_env, ewald_env, ewald_pw, active_space, mpools, input, para_env, blacs_env, scf_control, rel_control, kinetic, qs_charges, vppl, xcint_weights, rho_core, rho_nlcc, rho_nlcc_g, ks_env, ks_qmmm_env, wf_history, scf_env, local_particles, local_molecules, distribution_2d, dbcsr_dist, molecule_kind_set, molecule_set, subsys, cp_subsys, oce, local_rho_set, rho_atom_set, task_list, task_list_soft, rho0_atom_set, rho0_mpole, rhoz_set, rhoz_cneo_set, ecoul_1c, rho0_s_rs, rho0_s_gs, rhoz_cneo_s_rs, rhoz_cneo_s_gs, do_kpoints, has_unit_metric, requires_mo_derivs, mo_derivs, mo_loc_history, nkind, natom, nelectron_total, nelectron_spin, efield, neighbor_list_id, linres_control, xas_env, virial, cp_ddapc_env, cp_ddapc_ewald, outer_scf_history, outer_scf_ihistory, x_data, et_coupling, dftb_potential, results, se_taper, se_store_int_env, se_nddo_mpole, se_nonbond_env, admm_env, lri_env, lri_density, exstate_env, ec_env, harris_env, dispersion_env, gcp_env, vee, rho_external, external_vxc, mask, mp2_env, bs_env, kg_env, wanniercentres, atprop, ls_scf_env, do_transport, transport_env, v_hartree_rspace, s_mstruct_changed, rho_changed, potential_changed, forces_up_to_date, mscfg_env, almo_scf_env, gradient_history, variable_history, embed_pot, spin_embed_pot, polar_env, mos_last_converged, eeq, rhs, do_rixs, tb_tblite)
Get the QUICKSTEP environment.
Definition and initialisation of the mo data type.
subroutine, public get_mo_set(mo_set, maxocc, homo, lfomo, nao, nelectron, n_el_f, nmo, eigenvalues, occupation_numbers, mo_coeff, mo_coeff_b, uniform_occupation, kts, mu, flexible_electron_count, cmo_coeff)
Get the components of a MO set data structure.
Calculates the moment integrals <a|r^m|b> and <a|r x d/dr|b>.
subroutine, public get_multipoles_ao(qs_env, n_moments, matrix_multipole, rpoint)
The AO multipoles M^k_µν = <φ_µ|(r - r_0)^k|φ_ν> of every order up to n_moments, on the block pattern...
Settings of the &BSE section (read_bse_section, re-read before every BSE run, normalised in place by ...
type of a logger, at the moment it contains just a print level starting at which level it should be l...
stores all the informations relevant to an mpi environment
parameters for the poisson solver independet of input_section