(git:ed6f26b)
Loading...
Searching...
No Matches
minbas_methods.F
Go to the documentation of this file.
1!--------------------------------------------------------------------------------------------------!
2! CP2K: A general program to perform molecular dynamics simulations !
3! Copyright 2000-2025 CP2K developers group <https://cp2k.org> !
4! !
5! SPDX-License-Identifier: GPL-2.0-or-later !
6!--------------------------------------------------------------------------------------------------!
7
8! **************************************************************************************************
9!> \brief Calculate localized minimal basis
10!> \par History
11!> 12.2016 created [JGH]
12!> \author JGH
13! **************************************************************************************************
17 USE cp_dbcsr_api, ONLY: &
20 dbcsr_multiply, dbcsr_p_type, dbcsr_release, dbcsr_type, dbcsr_type_no_symmetry
32 USE cp_fm_types, ONLY: cp_fm_create,&
37 USE kinds, ONLY: dp
46 USE qs_ks_types, ONLY: get_ks_env,&
48 USE qs_mo_types, ONLY: get_mo_set,&
50#include "./base/base_uses.f90"
51
52 IMPLICIT NONE
53 PRIVATE
54
55 CHARACTER(len=*), PARAMETER, PRIVATE :: moduleN = 'minbas_methods'
56
57 PUBLIC :: minbas_calculation
58
59! **************************************************************************************************
60
61CONTAINS
62
63! **************************************************************************************************
64!> \brief ...
65!> \param qs_env ...
66!> \param mos ...
67!> \param quambo ...
68!> \param mao ...
69!> \param iounit ...
70!> \param full_ortho ...
71!> \param eps_filter ...
72! **************************************************************************************************
73 SUBROUTINE minbas_calculation(qs_env, mos, quambo, mao, iounit, full_ortho, eps_filter)
74 TYPE(qs_environment_type), POINTER :: qs_env
75 TYPE(mo_set_type), DIMENSION(:), INTENT(IN) :: mos
76 TYPE(dbcsr_p_type), DIMENSION(:), POINTER :: quambo
77 TYPE(dbcsr_p_type), DIMENSION(:), OPTIONAL, &
78 POINTER :: mao
79 INTEGER, INTENT(IN), OPTIONAL :: iounit
80 LOGICAL, INTENT(IN), OPTIONAL :: full_ortho
81 REAL(kind=dp), INTENT(IN), OPTIONAL :: eps_filter
82
83 CHARACTER(len=*), PARAMETER :: routinen = 'minbas_calculation'
84
85 INTEGER :: handle, homo, i, iab, ispin, nao, natom, &
86 ndep, nmao, nmo, nmx, np, np1, nspin, &
87 nvirt, unit_nr
88 INTEGER, DIMENSION(:), POINTER :: col_blk_sizes, row_blk_sizes
89 LOGICAL :: do_minbas, my_full_ortho
90 REAL(kind=dp) :: my_eps_filter
91 REAL(kind=dp), ALLOCATABLE, DIMENSION(:) :: dval, dvalo, dvalv, eigval
92 TYPE(cp_blacs_env_type), POINTER :: blacs_env
93 TYPE(cp_fm_struct_type), POINTER :: fm_struct_a, fm_struct_b, fm_struct_c, &
94 fm_struct_d, fm_struct_e
95 TYPE(cp_fm_type) :: fm1, fm2, fm3, fm4, fm5, fm6, fma, fmb, &
96 fmwork
97 TYPE(cp_fm_type), POINTER :: fm_mos
98 TYPE(dbcsr_distribution_type), POINTER :: dbcsr_dist
99 TYPE(dbcsr_p_type), DIMENSION(:), POINTER :: mao_coef
100 TYPE(dbcsr_p_type), DIMENSION(:, :), POINTER :: matrix_s
101 TYPE(dbcsr_type) :: smao, sortho
102 TYPE(dbcsr_type), POINTER :: smat
103 TYPE(dft_control_type), POINTER :: dft_control
104 TYPE(mp_para_env_type), POINTER :: para_env
105 TYPE(particle_type), DIMENSION(:), POINTER :: particle_set
106 TYPE(qs_kind_type), DIMENSION(:), POINTER :: qs_kind_set
107 TYPE(qs_ks_env_type), POINTER :: ks_env
108
109 CALL timeset(routinen, handle)
110
111 IF (PRESENT(iounit)) THEN
112 unit_nr = iounit
113 ELSE
114 unit_nr = -1
115 END IF
116
117 IF (PRESENT(full_ortho)) THEN
118 my_full_ortho = full_ortho
119 ELSE
120 my_full_ortho = .false.
121 END IF
122
123 IF (PRESENT(eps_filter)) THEN
124 my_eps_filter = eps_filter
125 ELSE
126 my_eps_filter = 1.0e-10_dp
127 END IF
128
129 CALL get_qs_env(qs_env, dft_control=dft_control)
130 nspin = dft_control%nspins
131
132 CALL get_qs_env(qs_env=qs_env, ks_env=ks_env)
133 CALL get_qs_env(qs_env=qs_env, qs_kind_set=qs_kind_set, natom=natom)
134 CALL get_ks_env(ks_env=ks_env, particle_set=particle_set, dbcsr_dist=dbcsr_dist)
135 ALLOCATE (row_blk_sizes(natom), col_blk_sizes(natom))
136 CALL get_particle_set(particle_set, qs_kind_set, nsgf=row_blk_sizes)
137 CALL get_particle_set(particle_set, qs_kind_set, nmao=col_blk_sizes)
138 nmao = sum(col_blk_sizes)
139 ! check if MAOs have been specified
140 DO iab = 1, natom
141 IF (col_blk_sizes(iab) < 0) &
142 cpabort("Number of MAOs has to be specified in KIND section for all elements")
143 END DO
144 CALL get_mo_set(mo_set=mos(1), nao=nao, nmo=nmo)
145
146 IF (unit_nr > 0) THEN
147 WRITE (unit_nr, '(T2,A,T71,I10)') 'Total Number of Atomic Basis Set Functions :', nao
148 WRITE (unit_nr, '(T2,A,T71,I10)') 'Total Number of Minimal Basis Set Functions :', nmao
149 IF (nspin == 1) THEN
150 WRITE (unit_nr, '(T2,A,T71,I10)') 'Total Number of Molecular Orbitals available :', nmo
151 ELSE
152 DO ispin = 1, nspin
153 CALL get_mo_set(mo_set=mos(ispin), nmo=nmx)
154 WRITE (unit_nr, '(T2,A,i2,T71,I10)') &
155 'Total Number of Molecular Orbitals available for Spin ', ispin, nmx
156 END DO
157 END IF
158 END IF
159 cpassert(nmao <= nao)
160 DO ispin = 1, nspin
161 CALL get_mo_set(mo_set=mos(ispin), nmo=nmx)
162 IF (nmx /= nmo) EXIT
163 END DO
164 do_minbas = .true.
165 IF (nmao > nmo) THEN
166 IF (unit_nr > 0) THEN
167 WRITE (unit_nr, '(T2,A)') 'Localized Minimal Basis Analysis not possible'
168 END IF
169 do_minbas = .false.
170 ELSEIF (nmo /= nmx) THEN
171 IF (unit_nr > 0) THEN
172 WRITE (unit_nr, '(T2,A)') 'Different Number of Alpha and Beta MOs'
173 WRITE (unit_nr, '(T2,A)') 'Localized Minimal Basis Analysis not possible'
174 END IF
175 do_minbas = .false.
176 ELSE
177 IF (nao > nmo) THEN
178 IF (unit_nr > 0) THEN
179 WRITE (unit_nr, '(T2,A)') 'WARNING: Only a subset of MOs is available: Analysis depends on MOs'
180 END IF
181 END IF
182 END IF
183
184 IF (do_minbas) THEN
185 ! initialize QUAMBOs
186 NULLIFY (quambo)
187 CALL dbcsr_allocate_matrix_set(quambo, nspin)
188 DO ispin = 1, nspin
189 ! coeficients
190 ALLOCATE (quambo(ispin)%matrix)
191 CALL dbcsr_create(matrix=quambo(ispin)%matrix, &
192 name="QUAMBO", dist=dbcsr_dist, matrix_type=dbcsr_type_no_symmetry, &
193 row_blk_size=row_blk_sizes, col_blk_size=col_blk_sizes)
194 END DO
195
196 ! initialize MAOs
197 ! optimize MAOs (mao_coef is allocated in the routine)
198 CALL mao_generate_basis(qs_env, mao_coef)
199
200 ! sortho (nmao x nmao)
201 CALL dbcsr_create(sortho, name="SORTHO", dist=dbcsr_dist, matrix_type=dbcsr_type_no_symmetry, &
202 row_blk_size=col_blk_sizes, col_blk_size=col_blk_sizes)
203 CALL dbcsr_reserve_diag_blocks(matrix=sortho)
204
205 DEALLOCATE (row_blk_sizes, col_blk_sizes)
206
207 ! temporary FM matrices
208 CALL get_qs_env(qs_env=qs_env, para_env=para_env, blacs_env=blacs_env)
209 NULLIFY (fm_struct_a, fm_struct_b)
210 CALL cp_fm_struct_create(fm_struct_a, nrow_global=nao, ncol_global=nmao, &
211 para_env=para_env, context=blacs_env)
212 CALL cp_fm_struct_create(fm_struct_b, nrow_global=nmo, ncol_global=nmao, &
213 para_env=para_env, context=blacs_env)
214 CALL cp_fm_create(fm1, fm_struct_a)
215 CALL cp_fm_create(fm2, fm_struct_b)
216 CALL cp_fm_create(fma, fm_struct_b)
217 CALL cp_fm_create(fmb, fm_struct_b)
218
219 CALL get_qs_env(qs_env, matrix_s_kp=matrix_s)
220 smat => matrix_s(1, 1)%matrix
221 DO ispin = 1, nspin
222
223 ! SMAO = Overlap*MAOs
224 CALL dbcsr_create(smao, name="S*MAO", template=mao_coef(1)%matrix)
225 CALL dbcsr_multiply("N", "N", 1.0_dp, smat, mao_coef(ispin)%matrix, 0.0_dp, smao)
226 ! a(nj)* = C(vn)(T) * SMAO(vj)
227 CALL copy_dbcsr_to_fm(smao, fm1)
228 CALL get_mo_set(mos(ispin), mo_coeff=fm_mos)
229 CALL parallel_gemm("T", "N", nmo, nmao, nao, 1.0_dp, fm_mos, fm1, 0.0_dp, fm2)
230 CALL dbcsr_release(smao)
231 CALL get_mo_set(mo_set=mos(ispin), homo=homo)
232 IF (unit_nr > 0) THEN
233 WRITE (unit_nr, '(T2,A,T51,A,i2,T71,I10)') 'MOs in Occupied Valence Set', 'Spin ', ispin, homo
234 END IF
235 nvirt = nmo - homo
236 NULLIFY (fm_struct_c)
237 CALL cp_fm_struct_create(fm_struct_c, nrow_global=nvirt, ncol_global=nvirt, &
238 para_env=para_env, context=blacs_env)
239 CALL cp_fm_create(fm3, fm_struct_c)
240 CALL cp_fm_create(fm4, fm_struct_c)
241 ! B(vw) = a(vj)* * a(wj)*
242 CALL parallel_gemm("N", "T", nvirt, nvirt, nmao, 1.0_dp, fm2, fm2, 0.0_dp, fm3, &
243 a_first_row=homo + 1, b_first_row=homo + 1)
244 ALLOCATE (eigval(nvirt))
245 CALL choose_eigv_solver(fm3, fm4, eigval)
246 ! SVD(B) -> select p largest eigenvalues and vectors
247 np = nmao - homo
248 np1 = nvirt - np + 1
249 IF (unit_nr > 0) THEN
250 WRITE (unit_nr, '(T2,A,T51,A,i2,T71,I10)') 'MOs in Virtual Valence Set', 'Spin ', ispin, np
251 END IF
252 ! R(vw) = SUM_p T(vp)*T(wp)
253 CALL parallel_gemm("N", "T", nvirt, nvirt, np, 1.0_dp, fm4, fm4, 0.0_dp, fm3, &
254 a_first_col=np1, b_first_col=np1)
255 !
256 ALLOCATE (dval(nmao), dvalo(nmao), dvalv(nmao))
257 NULLIFY (fm_struct_d)
258 CALL cp_fm_struct_create(fm_struct_d, nrow_global=nvirt, ncol_global=nmao, &
259 para_env=para_env, context=blacs_env)
260 CALL cp_fm_create(fm5, fm_struct_d)
261 NULLIFY (fm_struct_e)
262 CALL cp_fm_struct_create(fm_struct_e, nrow_global=nmao, ncol_global=nmao, &
263 para_env=para_env, context=blacs_env)
264 CALL cp_fm_create(fm6, fm_struct_e)
265 ! D(j) = SUM_n (a(nj)*)^2 + SUM_vw R(vw) * a(vj)* * a(wj)*
266 CALL parallel_gemm("N", "N", nvirt, nmao, nvirt, 1.0_dp, fm3, fm2, 0.0_dp, fm5, &
267 b_first_row=homo + 1)
268 CALL parallel_gemm("T", "N", nmao, nmao, nvirt, 1.0_dp, fm2, fm5, 0.0_dp, fm6, &
269 a_first_row=homo + 1)
270 CALL cp_fm_get_diag(fm6, dvalv(1:nmao))
271 CALL parallel_gemm("T", "N", nmao, nmao, homo, 1.0_dp, fm2, fm2, 0.0_dp, fm6)
272 CALL cp_fm_get_diag(fm6, dvalo(1:nmao))
273 DO i = 1, nmao
274 dval(i) = 1.0_dp/sqrt(dvalo(i) + dvalv(i))
275 END DO
276 ! scale intermediate expansion
277 CALL cp_fm_to_fm_submat(fm2, fma, homo, nmao, 1, 1, 1, 1)
278 CALL cp_fm_to_fm_submat(fm5, fma, nvirt, nmao, 1, 1, homo + 1, 1)
279 CALL cp_fm_column_scale(fma, dval)
280 ! Orthogonalization
281 CALL cp_fm_create(fmwork, fm_struct_e)
282 CALL parallel_gemm("T", "N", nmao, nmao, nmo, 1.0_dp, fma, fma, 0.0_dp, fm6)
283 IF (my_full_ortho) THEN
284 ! full orthogonalization
285 CALL cp_fm_power(fm6, fmwork, -0.5_dp, 1.0e-12_dp, ndep)
286 IF (ndep > 0 .AND. unit_nr > 0) THEN
287 WRITE (unit_nr, '(T2,A,T71,I10)') 'Warning: linear dependent basis ', ndep
288 END IF
289 CALL parallel_gemm("N", "N", nmo, nmao, nmao, 1.0_dp, fma, fm6, 0.0_dp, fmb)
290 ELSE
291 ! orthogonalize on-atom blocks
292 CALL copy_fm_to_dbcsr(fm6, sortho, keep_sparsity=.true.)
293 CALL diag_sqrt_invert(sortho)
294 CALL copy_dbcsr_to_fm(sortho, fm6)
295 CALL parallel_gemm("N", "N", nmo, nmao, nmao, 1.0_dp, fma, fm6, 0.0_dp, fmb)
296 END IF
297 ! store as QUAMBO
298 CALL parallel_gemm("N", "N", nao, nmao, nmo, 1.0_dp, fm_mos, fmb, 0.0_dp, fm1)
299 CALL copy_fm_to_dbcsr(fm1, quambo(ispin)%matrix)
300 CALL dbcsr_filter(quambo(ispin)%matrix, my_eps_filter)
301 !
302 DEALLOCATE (eigval, dval, dvalo, dvalv)
303 CALL cp_fm_release(fm3)
304 CALL cp_fm_release(fm4)
305 CALL cp_fm_release(fm5)
306 CALL cp_fm_release(fm6)
307 CALL cp_fm_release(fmwork)
308 CALL cp_fm_struct_release(fm_struct_c)
309 CALL cp_fm_struct_release(fm_struct_d)
310 CALL cp_fm_struct_release(fm_struct_e)
311
312 END DO
313
314 ! clean up
315 CALL cp_fm_release(fm1)
316 CALL cp_fm_release(fm2)
317 CALL cp_fm_release(fma)
318 CALL cp_fm_release(fmb)
319 CALL cp_fm_struct_release(fm_struct_a)
320 CALL cp_fm_struct_release(fm_struct_b)
321 CALL dbcsr_release(sortho)
322
323 ! return MAOs if requested
324 IF (PRESENT(mao)) THEN
325 mao => mao_coef
326 ELSE
327 CALL dbcsr_deallocate_matrix_set(mao_coef)
328 END IF
329
330 ELSE
331 NULLIFY (quambo)
332 END IF
333
334 CALL timestop(handle)
335
336 END SUBROUTINE minbas_calculation
337
338! **************************************************************************************************
339!> \brief ...
340!> \param sortho ...
341! **************************************************************************************************
342 SUBROUTINE diag_sqrt_invert(sortho)
343 TYPE(dbcsr_type) :: sortho
344
345 INTEGER :: i, iatom, info, jatom, lwork, n
346 REAL(kind=dp), ALLOCATABLE, DIMENSION(:) :: w, work
347 REAL(kind=dp), ALLOCATABLE, DIMENSION(:, :) :: amat, bmat
348 REAL(kind=dp), DIMENSION(:, :), POINTER :: sblock
349 TYPE(dbcsr_iterator_type) :: dbcsr_iter
350
351 CALL dbcsr_iterator_start(dbcsr_iter, sortho)
352 DO WHILE (dbcsr_iterator_blocks_left(dbcsr_iter))
353 CALL dbcsr_iterator_next_block(dbcsr_iter, iatom, jatom, sblock)
354 cpassert(iatom == jatom)
355 n = SIZE(sblock, 1)
356 lwork = max(n*n, 100)
357 ALLOCATE (amat(n, n), bmat(n, n), w(n), work(lwork))
358 amat(1:n, 1:n) = sblock(1:n, 1:n)
359 info = 0
360 CALL dsyev("V", "U", n, amat, n, w, work, lwork, info)
361 cpassert(info == 0)
362 w(1:n) = 1._dp/sqrt(w(1:n))
363 DO i = 1, n
364 bmat(1:n, i) = amat(1:n, i)*w(i)
365 END DO
366 sblock(1:n, 1:n) = matmul(amat, transpose(bmat))
367 DEALLOCATE (amat, bmat, w, work)
368 END DO
369 CALL dbcsr_iterator_stop(dbcsr_iter)
370
371 END SUBROUTINE diag_sqrt_invert
372
373END MODULE minbas_methods
methods related to the blacs parallel environment
Defines control structures, which contain the parameters and the settings for the DFT-based calculati...
subroutine, public dbcsr_iterator_next_block(iterator, row, column, block, block_number_argument_has_been_removed, row_size, col_size, row_offset, col_offset)
...
logical function, public dbcsr_iterator_blocks_left(iterator)
...
subroutine, public dbcsr_iterator_stop(iterator)
...
subroutine, public dbcsr_multiply(transa, transb, alpha, matrix_a, matrix_b, beta, matrix_c, first_row, last_row, first_column, last_column, first_k, last_k, retain_sparsity, filter_eps, flop)
...
subroutine, public dbcsr_filter(matrix, eps)
...
subroutine, public dbcsr_iterator_start(iterator, matrix, shared, dynamic, dynamic_byrows)
...
subroutine, public dbcsr_release(matrix)
...
subroutine, public dbcsr_reserve_diag_blocks(matrix)
Reserves all diagonal blocks.
DBCSR operations in CP2K.
subroutine, public copy_dbcsr_to_fm(matrix, fm)
Copy a DBCSR matrix to a BLACS matrix.
subroutine, public copy_fm_to_dbcsr(fm, matrix, keep_sparsity)
Copy a BLACS matrix to a dbcsr matrix.
basic linear algebra operations for full matrices
subroutine, public cp_fm_column_scale(matrixa, scaling)
scales column i of matrix a with scaling(i)
used for collecting some of the diagonalization schemes available for cp_fm_type. cp_fm_power also mo...
Definition cp_fm_diag.F:17
subroutine, public cp_fm_power(matrix, work, exponent, threshold, n_dependent, verbose, eigvals)
...
subroutine, public choose_eigv_solver(matrix, eigenvectors, eigenvalues, info)
Choose the Eigensolver depending on which library is available ELPA seems to be unstable for small sy...
Definition cp_fm_diag.F:229
represent the structure of a full matrix
subroutine, public cp_fm_struct_create(fmstruct, para_env, context, nrow_global, ncol_global, nrow_block, ncol_block, descriptor, first_p_pos, local_leading_dimension, template_fmstruct, square_blocks, force_block)
allocates and initializes a full matrix structure
subroutine, public cp_fm_struct_release(fmstruct)
releases a full matrix structure
represent a full matrix distributed on many processors
Definition cp_fm_types.F:15
subroutine, public cp_fm_get_diag(matrix, diag)
returns the diagonal elements of a fm
subroutine, public cp_fm_to_fm_submat(msource, mtarget, nrow, ncol, s_firstrow, s_firstcol, t_firstrow, t_firstcol)
copy just a part ot the matrix
subroutine, public cp_fm_create(matrix, matrix_struct, name, use_sp)
creates a new full matrix with the given structure
Defines the basic variable types.
Definition kinds.F:23
integer, parameter, public dp
Definition kinds.F:34
Calculate MAO's and analyze wavefunctions.
Definition mao_basis.F:15
subroutine, public mao_generate_basis(qs_env, mao_coef, ref_basis_set, pmat_external, smat_external, molecular, max_iter, eps_grad, nmao_external, eps1_mao, iolevel, unit_nr)
...
Definition mao_basis.F:75
Interface to the message passing library MPI.
Calculate localized minimal basis.
subroutine, public minbas_calculation(qs_env, mos, quambo, mao, iounit, full_ortho, eps_filter)
...
basic linear algebra operations for full matrixes
Define methods related to particle_type.
subroutine, public get_particle_set(particle_set, qs_kind_set, first_sgf, last_sgf, nsgf, nmao, basis)
Get the components of a particle set.
Define the data structure for the particle information.
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, 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, 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, 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, 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, ecoul_1c, rho0_s_rs, rho0_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)
Get the QUICKSTEP environment.
Define the quickstep kind type and their sub types.
subroutine, public get_ks_env(ks_env, v_hartree_rspace, s_mstruct_changed, rho_changed, potential_changed, forces_up_to_date, complex_ks, matrix_h, matrix_h_im, matrix_ks, matrix_ks_im, matrix_vxc, kinetic, matrix_s, matrix_s_ri_aux, matrix_w, matrix_p_mp2, matrix_p_mp2_admm, matrix_h_kp, matrix_h_im_kp, matrix_ks_kp, matrix_vxc_kp, kinetic_kp, matrix_s_kp, matrix_w_kp, matrix_s_ri_aux_kp, matrix_ks_im_kp, rho, rho_xc, vppl, rho_core, rho_nlcc, rho_nlcc_g, vee, neighbor_list_id, sab_orb, sab_all, sac_ae, sac_ppl, sac_lri, sap_ppnl, sap_oce, sab_lrc, sab_se, sab_xtbe, sab_tbe, sab_core, sab_xb, sab_xtb_pp, sab_xtb_nonbond, sab_vdw, sab_scp, sab_almo, sab_kp, sab_kp_nosym, task_list, task_list_soft, kpoints, do_kpoints, atomic_kind_set, qs_kind_set, cell, cell_ref, use_ref_cell, particle_set, energy, force, local_particles, local_molecules, molecule_kind_set, molecule_set, subsys, cp_subsys, virial, results, atprop, nkind, natom, dft_control, dbcsr_dist, distribution_2d, pw_env, para_env, blacs_env, nelectron_total, nelectron_spin)
...
Definition and initialisation of the mo data type.
Definition qs_mo_types.F:22
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)
Get the components of a MO set data structure.
represent a blacs multidimensional parallel environment (for the mpi corrispective see cp_paratypes/m...
keeps the information about the structure of a full matrix
represent a full matrix
stores all the informations relevant to an mpi environment
Provides all information about a quickstep kind.
calculation environment to calculate the ks matrix, holds all the needed vars. assumes that the core ...