61 CHARACTER(LEN=*),
PARAMETER :: routinen =
'floquet'
63 COMPLEX(KIND=dp),
ALLOCATABLE, &
64 DIMENSION(:, :, :, :, :) :: dipole
65 INTEGER :: handle, ikp, ispin, my_group, &
66 n_est_done, n_source_done, ngroups
67 INTEGER,
ALLOCATABLE,
DIMENSION(:) :: group_distribution
68 REAL(kind=
dp),
ALLOCATABLE,
DIMENSION(:, :, :) :: e_k
69 REAL(kind=
dp),
ALLOCATABLE,
DIMENSION(:, :, :, :) :: de_dk
71 TYPE(
cp_cfm_type) :: cfm_eigenvectors, floquet_matrix
76 CALL timeset(routinen, handle)
107 group_distribution, ngroups)
110 my_group = group_distribution(para_env%mepos)
113 nrow_global=floquet_env%n_f_size, ncol_global=floquet_env%n_f_size)
114 CALL cp_cfm_create(floquet_matrix, floquet_struct, set_zero=.true.)
115 CALL cp_cfm_create(cfm_eigenvectors, floquet_struct, set_zero=.true.)
119 DO ikp = 1, floquet_env%nkp_only_bs
121 IF (group_distribution(mod(ikp - 1, para_env%num_pe)) /= my_group) cycle
123 DO ispin = 1, floquet_env%n_spin
139 CALL cp_cfm_heevd(floquet_matrix, cfm_eigenvectors, floquet_env%eigenvalues)
170 IF (bs_env%unit_nr > 0)
THEN
171 n_source_done = n_source_done + 1
172 n_est_done = min(n_source_done*ngroups, floquet_env%nkp_only_bs)
173 WRITE (bs_env%unit_nr,
'(T2,A,I6,A,F6.1,A)') &
174 "FLOQUET PROGRESS | Estimated no. of k-points done: ", n_est_done,
" (", &
175 100.0_dp*real(n_est_done,
dp)/real(floquet_env%nkp_only_bs,
dp),
" %)"
183 DEALLOCATE (e_k, de_dk, dipole)
184 DEALLOCATE (group_distribution)
192 CALL timestop(handle)
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.