|
| subroutine, public | bse_main::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 polarizability Q(0): re-reads the settings, cuts the window on the DFT axis out of the slabs and both energy sets, and inverts 1+Q(0) for W0 screening. Starts no solver.
|
| subroutine, public | bse_main::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 and a ready inverse dielectric matrix: nothing is cut or inverted, the slabs are taken over as they are. Shares start_bse_env and finish_bse_env with prepare_bse_env_from_ri_rpa_gw. Starts no solver.
|
| subroutine, public | bse_main::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, then the FULLDIAG or ITERDIAG solver on the energies USE_KS_ENERGIES selects.
|
| subroutine, public | bse_main::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 n_ov = sum_spin n_occ n_virt, the estimate is estimate_BSE_resources', and the run stops when it exceeds what MEMORY_PER_PROC leaves after the memory the rank holds, since a full diagonalization has nothing to shrink.
|
| subroutine, public | bse_main::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 eigenvalues, the occupied MOs per spin from their homo
|