Line data Source code
1 : !--------------------------------------------------------------------------------------------------!
2 : ! CP2K: A general program to perform molecular dynamics simulations !
3 : ! Copyright 2000-2026 CP2K developers group <https://cp2k.org> !
4 : ! !
5 : ! SPDX-License-Identifier: GPL-2.0-or-later !
6 : !--------------------------------------------------------------------------------------------------!
7 :
8 : ! **************************************************************************************************
9 : !> \brief function that build the QS section of the input
10 : !> \par History
11 : !> 10.2005 moved out of input_cp2k [fawzi]
12 : !> 07.2024 moved out of input_cp2k_dft [JGH]
13 : !> \author fawzi
14 : ! **************************************************************************************************
15 : MODULE input_cp2k_qs
16 : USE bibliography, ONLY: &
17 : Andermatt2016, Brelaz1979, Dewar1977, Dewar1985, Golze2017a, Golze2017b, Iannuzzi2006, &
18 : Kolafa2004, Krack2000, Kuhne2007, Lippert1997, Lippert1999, Repasky2002, Rocha2006, &
19 : Schenter2008, Stewart1989, Stewart2007, Thiel1992, VanVoorhis2015, VandeVondele2005a, &
20 : VandeVondele2006
21 : USE cp_output_handling, ONLY: add_last_numeric,&
22 : cp_print_key_section_create,&
23 : low_print_level
24 : USE input_constants, ONLY: &
25 : do_ddapc_constraint, do_ddapc_restraint, do_full_density, do_gapw_gcs, do_gapw_gct, &
26 : do_gapw_log, do_lri_inv, do_lri_inv_auto, do_lri_pseudoinv_diag, do_lri_pseudoinv_svd, &
27 : do_method_am1, do_method_dftb, do_method_gapw, do_method_gapw_xc, do_method_gpw, &
28 : do_method_lrigpw, do_method_mndo, do_method_mndod, do_method_ofgpw, do_method_pdg, &
29 : do_method_pm3, do_method_pm6, do_method_pm6fm, do_method_pnnl, do_method_rigpw, &
30 : do_method_rm1, do_method_xtb, do_ppl_analytic, do_ppl_grid, do_pwgrid_ns_fullspace, &
31 : do_pwgrid_ns_halfspace, do_pwgrid_spherical, do_s2_constraint, do_s2_restraint, &
32 : do_spin_density, gapw_1c_large, gapw_1c_medium, gapw_1c_orb, gapw_1c_small, &
33 : gapw_1c_very_large, gaussian, numerical, slater, wfi_aspc_nr, wfi_frozen_method_nr, &
34 : wfi_gext_proj_nr, wfi_gext_proj_qtr_nr, wfi_linear_p_method_nr, wfi_linear_ps_method_nr, &
35 : wfi_linear_wf_method_nr, wfi_ps_method_nr, wfi_use_guess_method_nr, &
36 : wfi_use_prev_p_method_nr, wfi_use_prev_wf_method_nr
37 : USE input_cp2k_distribution, ONLY: create_distribution_section
38 : USE input_cp2k_opt, ONLY: create_optimize_dmfet,&
39 : create_optimize_embed,&
40 : create_optimize_lri_basis_section
41 : USE input_cp2k_scf, ONLY: create_cdft_control_section
42 : USE input_cp2k_se, ONLY: create_se_control_section
43 : USE input_cp2k_tb, ONLY: create_dftb_control_section,&
44 : create_xtb_control_section
45 : USE input_keyword_types, ONLY: keyword_create,&
46 : keyword_release,&
47 : keyword_type
48 : USE input_section_types, ONLY: section_add_keyword,&
49 : section_add_subsection,&
50 : section_create,&
51 : section_release,&
52 : section_type
53 : USE input_val_types, ONLY: integer_t,&
54 : lchar_t,&
55 : real_t
56 : USE kinds, ONLY: dp
57 : USE pw_grids, ONLY: do_pw_grid_blocked_false,&
58 : do_pw_grid_blocked_free,&
59 : do_pw_grid_blocked_true
60 : USE string_utilities, ONLY: s2a
61 : #include "./base/base_uses.f90"
62 :
63 : IMPLICIT NONE
64 : PRIVATE
65 :
66 : CHARACTER(len=*), PARAMETER, PRIVATE :: moduleN = 'input_cp2k_qs'
67 :
68 : PUBLIC :: create_qs_section, create_lrigpw_section, create_ddapc_restraint_section
69 :
70 : CONTAINS
71 :
72 : ! **************************************************************************************************
73 : !> \brief creates the input section for the qs part
74 : !> \param section the section to create
75 : !> \author teo
76 : ! **************************************************************************************************
77 10643 : SUBROUTINE create_qs_section(section)
78 : TYPE(section_type), POINTER :: section
79 :
80 : TYPE(keyword_type), POINTER :: keyword
81 : TYPE(section_type), POINTER :: subsection
82 :
83 10643 : CPASSERT(.NOT. ASSOCIATED(section))
84 : CALL section_create(section, __LOCATION__, name="qs", &
85 : description="parameters needed to set up the Quickstep framework", &
86 10643 : n_keywords=1, n_subsections=0, repeats=.FALSE.)
87 :
88 10643 : NULLIFY (keyword, subsection)
89 :
90 : ! Reals
91 : CALL keyword_create(keyword, __LOCATION__, name="EPS_DEFAULT", &
92 : description="Try setting all EPS_xxx to values leading to an energy correct up to EPS_DEFAULT", &
93 10643 : usage="EPS_DEFAULT real", default_r_val=1.0E-10_dp)
94 10643 : CALL section_add_keyword(section, keyword)
95 10643 : CALL keyword_release(keyword)
96 :
97 : CALL keyword_create(keyword, __LOCATION__, name="EPS_CORE_CHARGE", &
98 : description="Precision for mapping the core charges.Overrides EPS_DEFAULT/100.0 value", &
99 10643 : usage="EPS_CORE_CHARGE real", type_of_var=real_t)
100 10643 : CALL section_add_keyword(section, keyword)
101 10643 : CALL keyword_release(keyword)
102 :
103 : CALL keyword_create( &
104 : keyword, __LOCATION__, name="EPS_GVG_RSPACE", &
105 : variants=["EPS_GVG"], &
106 : description="Sets precision of the realspace KS matrix element integration. Overrides SQRT(EPS_DEFAULT) value", &
107 21286 : usage="EPS_GVG_RSPACE real", type_of_var=real_t)
108 10643 : CALL section_add_keyword(section, keyword)
109 10643 : CALL keyword_release(keyword)
110 :
111 : CALL keyword_create(keyword, __LOCATION__, name="EPS_PGF_ORB", &
112 : description="Sets precision of the overlap matrix elements. Overrides SQRT(EPS_DEFAULT) value", &
113 10643 : usage="EPS_PGF_ORB real", type_of_var=real_t)
114 10643 : CALL section_add_keyword(section, keyword)
115 10643 : CALL keyword_release(keyword)
116 :
117 : CALL keyword_create( &
118 : keyword, __LOCATION__, name="EPS_KG_ORB", &
119 : description="Sets precision used in coloring the subsets for the Kim-Gordon method. Overrides SQRT(EPS_DEFAULT) value", &
120 : usage="EPS_KG_ORB 1.0E-8", &
121 10643 : type_of_var=real_t)
122 10643 : CALL section_add_keyword(section, keyword)
123 10643 : CALL keyword_release(keyword)
124 :
125 : CALL keyword_create(keyword, __LOCATION__, name="EPS_PPL", &
126 : description="Adjusts the precision for the local part of the pseudo potential. ", &
127 10643 : usage="EPS_PPL real", type_of_var=real_t, default_r_val=1.0E-2_dp)
128 10643 : CALL section_add_keyword(section, keyword)
129 10643 : CALL keyword_release(keyword)
130 :
131 : CALL keyword_create( &
132 : keyword, __LOCATION__, name="EPS_PPNL", &
133 : description="Sets precision of the non-local part of the pseudo potential. Overrides sqrt(EPS_DEFAULT) value", &
134 10643 : usage="EPS_PPNL real", type_of_var=real_t)
135 10643 : CALL section_add_keyword(section, keyword)
136 10643 : CALL keyword_release(keyword)
137 :
138 : CALL keyword_create(keyword, __LOCATION__, name="EPS_CPC", &
139 : description="Sets precision of the GAPW projection. Overrides EPS_DEFAULT value", &
140 10643 : usage="EPS_CPC real", type_of_var=real_t)
141 10643 : CALL section_add_keyword(section, keyword)
142 10643 : CALL keyword_release(keyword)
143 :
144 : CALL keyword_create(keyword, __LOCATION__, name="EPS_RHO", &
145 : description="Sets precision of the density mapping on the grids.Overrides EPS_DEFAULT value", &
146 10643 : usage="EPS_RHO real", type_of_var=real_t)
147 10643 : CALL section_add_keyword(section, keyword)
148 10643 : CALL keyword_release(keyword)
149 :
150 : CALL keyword_create(keyword, __LOCATION__, name="EPS_RHO_RSPACE", &
151 : description="Sets precision of the density mapping in rspace.Overrides EPS_DEFAULT value."// &
152 : " Overrides EPS_RHO value", &
153 10643 : usage="EPS_RHO_RSPACE real", type_of_var=real_t)
154 10643 : CALL section_add_keyword(section, keyword)
155 10643 : CALL keyword_release(keyword)
156 :
157 : CALL keyword_create(keyword, __LOCATION__, name="EPS_RHO_GSPACE", &
158 : description="Sets precision of the density mapping in gspace.Overrides EPS_DEFAULT value."// &
159 : " Overrides EPS_RHO value", &
160 10643 : usage="EPS_RHO_GSPACE real", type_of_var=real_t)
161 10643 : CALL section_add_keyword(section, keyword)
162 10643 : CALL keyword_release(keyword)
163 :
164 : CALL keyword_create(keyword, __LOCATION__, name="EPS_FILTER_MATRIX", &
165 : description="Sets the threshold for filtering matrix elements.", &
166 10643 : usage="EPS_FILTER_MATRIX 1.0E-6", type_of_var=real_t, default_r_val=0.0E0_dp)
167 10643 : CALL section_add_keyword(section, keyword)
168 10643 : CALL keyword_release(keyword)
169 :
170 : CALL keyword_create(keyword, __LOCATION__, name="EPSFIT", &
171 : variants=["EPS_FIT"], &
172 : description="GAPW: tolerance controlling the split of Gaussian basis functions "// &
173 : "into hard atom-centered and soft grid-expanded parts. Smaller values include "// &
174 : "harder Gaussians in the soft density and can require a larger MGRID cutoff.", &
175 21286 : usage="EPSFIT real", default_r_val=1.0E-4_dp)
176 10643 : CALL section_add_keyword(section, keyword)
177 10643 : CALL keyword_release(keyword)
178 :
179 : CALL keyword_create(keyword, __LOCATION__, name="EPSISO", &
180 : variants=["EPS_ISO"], &
181 : description="GAPW: precision to determine an isolated projector", &
182 21286 : usage="EPSISO real", default_r_val=1.0E-12_dp)
183 10643 : CALL section_add_keyword(section, keyword)
184 10643 : CALL keyword_release(keyword)
185 :
186 : CALL keyword_create(keyword, __LOCATION__, name="EPSSVD", &
187 : variants=["EPS_SVD"], &
188 : description="GAPW: tolerance used in the singular value decomposition of the "// &
189 : "projector matrix. Smaller values can improve numerical accuracy at increased cost.", &
190 21286 : usage="EPS_SVD real", default_r_val=1.0E-8_dp)
191 10643 : CALL section_add_keyword(section, keyword)
192 10643 : CALL keyword_release(keyword)
193 :
194 : CALL keyword_create(keyword, __LOCATION__, name="EPSRHO0", &
195 : variants=s2a("EPSVRHO0", "EPS_VRHO0"), &
196 : description="GAPW: tolerance used to determine the range of the "// &
197 : "V(rho0-rho0_soft) compensation contribution.", &
198 10643 : usage="EPSRHO0 real", default_r_val=1.0E-6_dp)
199 10643 : CALL section_add_keyword(section, keyword)
200 10643 : CALL keyword_release(keyword)
201 :
202 : CALL keyword_create(keyword, __LOCATION__, name="ALPHA0_HARD", &
203 : variants=s2a("ALPHA0_H", "ALPHA0"), &
204 : description="GAPW: Exponent for hard compensation charge", &
205 10643 : usage="ALPHA0_HARD real", default_r_val=0.0_dp)
206 10643 : CALL section_add_keyword(section, keyword)
207 10643 : CALL keyword_release(keyword)
208 :
209 : CALL keyword_create( &
210 : keyword, __LOCATION__, name="FORCE_PAW", &
211 : description="Use the GAPW scheme also for atoms with soft basis sets, i.e. "// &
212 : "the local densities are computed even if hard and soft should be equal. "// &
213 : "If this keyword is not set to true, those atoms with soft basis sets are treated by a GPW scheme, i.e. "// &
214 : "the corresponding density contribution goes on the global grid and is expanded in PW. "// &
215 : "This option nullifies the effect of the GPW_TYPE in the atomic KIND", &
216 : usage="FORCE_PAW", &
217 10643 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
218 10643 : CALL section_add_keyword(section, keyword)
219 10643 : CALL keyword_release(keyword)
220 :
221 : CALL keyword_create(keyword, __LOCATION__, name="MAX_RAD_LOCAL", &
222 : description="GAPW : maximum radius of gaussian functions"// &
223 : " included in the generation of projectors", &
224 10643 : usage="MAX_RAD_LOCAL real", default_r_val=25.0_dp)
225 10643 : CALL section_add_keyword(section, keyword)
226 10643 : CALL keyword_release(keyword)
227 :
228 : CALL keyword_create(keyword, __LOCATION__, name="GAPW_1C_BASIS", &
229 : description="Specifies how to construct the GAPW one center basis set. "// &
230 : "Default is to use the primitives from the orbital basis.", &
231 : usage="GAPW_1C_BASIS MEDIUM", &
232 : enum_c_vals=s2a("ORB", "EXT_SMALL", "EXT_MEDIUM", "EXT_LARGE", "EXT_VERY_LARGE"), &
233 : enum_desc=s2a("Use orbital basis set.", &
234 : "Extension using Small number of primitive Gaussians.", &
235 : "Extension using Medium number of primitive Gaussians.", &
236 : "Extension using Large number of primitive Gaussians.", &
237 : "Extension using Very Large number of primitive Gaussians."), &
238 : enum_i_vals=[gapw_1c_orb, gapw_1c_small, gapw_1c_medium, &
239 : gapw_1c_large, gapw_1c_very_large], &
240 10643 : default_i_val=gapw_1c_orb)
241 10643 : CALL section_add_keyword(section, keyword)
242 10643 : CALL keyword_release(keyword)
243 :
244 : CALL keyword_create( &
245 : keyword, __LOCATION__, name="GAPW_ACCURATE_XCINT", &
246 : description="Use the accurate GAPW/GAPW_XC XC integration scheme for one-center hard/soft "// &
247 : "density differences. This opt-in path covers regular GAPW/GAPW_XC XC energy, potential, "// &
248 : "forces, mGGA/tau terms, NLCC, Fine-XC grids, local XC energy-density transfer, analytical "// &
249 : "stress, TDDFPT/response forces, ADMM-GAPW force paths, an ADMM-GAPW diagonal stress "// &
250 : "debug path, nonlocal vdW smoke coverage, representative k-point, XAS_TDP, and RTBSE "// &
251 : "smoke cases, and KG GAPW/GAPW_XC EMBED, EMBED_RI, ATOMIC, and NONE cases. Regular-grid "// &
252 : "local energy and stress cube print keys keep their existing soft-grid semantics and are "// &
253 : "not changed by this keyword. The default remains off while this coverage is being prepared "// &
254 : "for a future default change.", &
255 : usage="GAPW_ACCURATE_XCINT", &
256 10643 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
257 10643 : CALL section_add_keyword(section, keyword)
258 10643 : CALL keyword_release(keyword)
259 :
260 : CALL keyword_create( &
261 : keyword, __LOCATION__, name="ALPHA_WEIGHTS", &
262 : description="Gaussian exponent reference (rc=1.2 Bohr) for accurate integration in GAPW.", &
263 10643 : usage="ALPHA_WEIGHTS 10.0", default_r_val=6.0_dp)
264 10643 : CALL section_add_keyword(section, keyword)
265 10643 : CALL keyword_release(keyword)
266 :
267 : CALL keyword_create(keyword, __LOCATION__, name="MIN_PAIR_LIST_RADIUS", &
268 : description="Set the minimum value [Bohr] for the overlap pair list radius."// &
269 : " Default is 0.0 Bohr, negative values are changed to the cell size."// &
270 : " This allows to control the sparsity of the KS matrix for HFX calculations.", &
271 10643 : usage="MIN_PAIR_LIST_RADIUS real", default_r_val=0.0_dp)
272 10643 : CALL section_add_keyword(section, keyword)
273 10643 : CALL keyword_release(keyword)
274 :
275 : ! Logicals
276 : CALL keyword_create(keyword, __LOCATION__, name="LS_SCF", &
277 : description="Perform a linear scaling SCF", &
278 : usage="LS_SCF", lone_keyword_l_val=.TRUE., &
279 10643 : default_l_val=.FALSE.)
280 10643 : CALL section_add_keyword(section, keyword)
281 10643 : CALL keyword_release(keyword)
282 :
283 : CALL keyword_create(keyword, __LOCATION__, name="ALMO_SCF", &
284 : description="Perform ALMO SCF", &
285 : usage="ALMO_SCF", lone_keyword_l_val=.TRUE., &
286 10643 : default_l_val=.FALSE.)
287 10643 : CALL section_add_keyword(section, keyword)
288 10643 : CALL keyword_release(keyword)
289 :
290 : CALL keyword_create(keyword, __LOCATION__, name="TRANSPORT", &
291 : description="Perform transport calculations (coupling CP2K and OMEN)", &
292 : usage="TRANSPORT", lone_keyword_l_val=.TRUE., &
293 10643 : default_l_val=.FALSE.)
294 10643 : CALL section_add_keyword(section, keyword)
295 10643 : CALL keyword_release(keyword)
296 :
297 : CALL keyword_create(keyword, __LOCATION__, name="KG_METHOD", &
298 : description="Use a Kim-Gordon-like scheme.", &
299 : usage="KG_METHOD", lone_keyword_l_val=.TRUE., &
300 42572 : default_l_val=.FALSE., citations=[Iannuzzi2006, Brelaz1979, Andermatt2016])
301 10643 : CALL section_add_keyword(section, keyword)
302 10643 : CALL keyword_release(keyword)
303 :
304 : CALL keyword_create(keyword, __LOCATION__, name="REF_EMBED_SUBSYS", &
305 : description="A total, reference, system in DFT embedding. ", &
306 : usage="REF_EMBED_SUBSYS FALSE", &
307 10643 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
308 10643 : CALL section_add_keyword(section, keyword)
309 10643 : CALL keyword_release(keyword)
310 :
311 : CALL keyword_create(keyword, __LOCATION__, name="CLUSTER_EMBED_SUBSYS", &
312 : description="A cluster treated with DFT in DFT embedding. ", &
313 : usage="CLUSTER_EMBED_SUBSYS FALSE", &
314 10643 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
315 10643 : CALL section_add_keyword(section, keyword)
316 10643 : CALL keyword_release(keyword)
317 :
318 : CALL keyword_create(keyword, __LOCATION__, name="HIGH_LEVEL_EMBED_SUBSYS", &
319 : description="A cluster treated with a high-level method in DFT embedding. ", &
320 : usage="HIGH_LEVEL_EMBED_SUBSYS FALSE", &
321 10643 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
322 10643 : CALL section_add_keyword(section, keyword)
323 10643 : CALL keyword_release(keyword)
324 :
325 : CALL keyword_create(keyword, __LOCATION__, name="DFET_EMBEDDED", &
326 : description="Calculation with DFT-embedding potential. ", &
327 : usage="DFET_EMBEDDED FALSE", &
328 10643 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
329 10643 : CALL section_add_keyword(section, keyword)
330 10643 : CALL keyword_release(keyword)
331 :
332 : CALL keyword_create(keyword, __LOCATION__, name="DMFET_EMBEDDED", &
333 : description="Calculation with DM embedding potential. ", &
334 : usage="DMFET_EMBEDDED FALSE", &
335 10643 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
336 10643 : CALL section_add_keyword(section, keyword)
337 10643 : CALL keyword_release(keyword)
338 :
339 : ! Integers
340 : CALL keyword_create(keyword, __LOCATION__, name="STO_NG", &
341 : description="Order of Gaussian type expansion of Slater orbital basis sets.", &
342 10643 : usage="STO_NG", default_i_val=6)
343 10643 : CALL section_add_keyword(section, keyword)
344 10643 : CALL keyword_release(keyword)
345 :
346 : CALL keyword_create(keyword, __LOCATION__, name="LMAXN1", &
347 : variants=["LMAXRHO1"], &
348 : description="GAPW : max L number for expansion of the atomic densities in spherical gaussians", &
349 : usage="LMAXN1 integer", &
350 21286 : default_i_val=-1)
351 10643 : CALL section_add_keyword(section, keyword)
352 10643 : CALL keyword_release(keyword)
353 :
354 : CALL keyword_create(keyword, __LOCATION__, name="LMAXN0", &
355 : variants=["LMAXRHO0"], &
356 : description="GAPW : max L number for the expansion compensation densities in spherical gaussians", &
357 : usage="LMAXN0 integer", &
358 21286 : default_i_val=2)
359 10643 : CALL section_add_keyword(section, keyword)
360 10643 : CALL keyword_release(keyword)
361 :
362 : CALL keyword_create(keyword, __LOCATION__, name="LADDN0", &
363 : description="GAPW : integer added to the max L of the basis set, used to determine the "// &
364 : "maximum value of L for the compensation charge density.", &
365 : usage="LADDN0 integer", &
366 10643 : default_i_val=99)
367 10643 : CALL section_add_keyword(section, keyword)
368 10643 : CALL keyword_release(keyword)
369 :
370 : ! Characters
371 : CALL keyword_create(keyword, __LOCATION__, name="QUADRATURE", &
372 : description="GAPW: algorithm to construct the atomic radial grids", &
373 : usage="QUADRATURE GC_SIMPLE", &
374 : enum_c_vals=s2a("GC_SIMPLE", "GC_TRANSFORMED", "GC_LOG"), &
375 : enum_i_vals=[do_gapw_gcs, do_gapw_gct, do_gapw_log], &
376 : enum_desc=s2a("Gauss-Chebyshev quadrature", &
377 : "Transformed Gauss-Chebyshev quadrature", &
378 : "Logarithmic transformed Gauss-Chebyshev quadrature"), &
379 10643 : default_i_val=do_gapw_log)
380 10643 : CALL section_add_keyword(section, keyword)
381 10643 : CALL keyword_release(keyword)
382 :
383 : CALL keyword_create(keyword, __LOCATION__, name="PW_GRID", &
384 : description="What kind of PW_GRID should be employed", &
385 : usage="PW_GRID NS-FULLSPACE", &
386 : enum_c_vals=s2a("SPHERICAL", "NS-FULLSPACE", "NS-HALFSPACE"), &
387 : enum_desc=s2a("- not tested", " tested", " - not tested"), &
388 : enum_i_vals=[do_pwgrid_spherical, do_pwgrid_ns_fullspace, do_pwgrid_ns_halfspace], &
389 10643 : default_i_val=do_pwgrid_ns_fullspace)
390 10643 : CALL section_add_keyword(section, keyword)
391 10643 : CALL keyword_release(keyword)
392 :
393 : CALL keyword_create(keyword, __LOCATION__, name="PW_GRID_LAYOUT", &
394 : description="Force a particular real-space layout for the plane waves grids. "// &
395 : "Numbers ≤ 0 mean that this dimension is free, incorrect layouts will be ignored. "// &
396 : "The default (/-1,-1/) causes CP2K to select a good value, "// &
397 : "i.e. plane distributed for large grids, more general distribution for small grids.", &
398 : usage="PW_GRID_LAYOUT 4 16", &
399 : repeats=.FALSE., n_var=2, &
400 10643 : default_i_vals=[-1, -1])
401 10643 : CALL section_add_keyword(section, keyword)
402 10643 : CALL keyword_release(keyword)
403 :
404 : CALL keyword_create(keyword, __LOCATION__, name="PW_GRID_BLOCKED", &
405 : description="Can be used to set the distribution in g-space for the pw grids and their FFT.", &
406 : usage="PW_GRID_BLOCKED FREE", &
407 : enum_c_vals=s2a("FREE", "TRUE", "FALSE"), &
408 : enum_desc=s2a("CP2K will select an appropriate value", "blocked", "not blocked"), &
409 : enum_i_vals=[do_pw_grid_blocked_free, do_pw_grid_blocked_true, do_pw_grid_blocked_false], &
410 10643 : default_i_val=do_pw_grid_blocked_free)
411 10643 : CALL section_add_keyword(section, keyword)
412 10643 : CALL keyword_release(keyword)
413 :
414 : CALL keyword_create( &
415 : keyword, __LOCATION__, name="EXTRAPOLATION", &
416 : variants=s2a("INTERPOLATION", "WF_INTERPOLATION"), &
417 : description="Extrapolation strategy for the wavefunction during e.g. MD. "// &
418 : "Not all options are available for all simulation methods. "// &
419 : "PS and ASPC are recommended, see also EXTRAPOLATION_ORDER.", &
420 : citations=[Kolafa2004, VandeVondele2005a, Kuhne2007], &
421 : usage="EXTRAPOLATION PS", &
422 : enum_c_vals=s2a("USE_GUESS", "USE_PREV_P", "LINEAR_WF", "LINEAR_P", "LINEAR_PS", &
423 : "USE_PREV_WF", "PS", "FROZEN", "ASPC", "GEXT_PROJ", "GEXT_PROJ_QTR"), &
424 : enum_desc=s2a( &
425 : "Use the method specified with SCF_GUESS, i.e. no extrapolation", &
426 : "Use the previous density matrix", &
427 : "Linear extrapolation of the wavefunction (not available for k-points)", &
428 : "Linear extrapolation of the density matrix", &
429 : "Linear extrapolation of the density matrix times the overlap matrix (not available for k-points)", &
430 : "Use the previous wavefunction", &
431 : "Higher order extrapolation of the density matrix times the overlap matrix", &
432 : "Frozen ... (not available for k-points)", &
433 : "Always stable predictor corrector, similar to PS, but going for MD stability instead of initial guess accuracy.", &
434 : "GExt extrapolation for the density matrix times the overlap matrix.", &
435 : "Quasi time reversible GExt extrapolation for the density matrix times the overlap matrix."), &
436 : enum_i_vals=[ &
437 : wfi_use_guess_method_nr, &
438 : wfi_use_prev_p_method_nr, &
439 : wfi_linear_wf_method_nr, &
440 : wfi_linear_p_method_nr, &
441 : wfi_linear_ps_method_nr, &
442 : wfi_use_prev_wf_method_nr, &
443 : wfi_ps_method_nr, &
444 : wfi_frozen_method_nr, &
445 : wfi_aspc_nr, &
446 : wfi_gext_proj_nr, &
447 : wfi_gext_proj_qtr_nr], &
448 42572 : default_i_val=wfi_aspc_nr)
449 10643 : CALL section_add_keyword(section, keyword)
450 10643 : CALL keyword_release(keyword)
451 :
452 : CALL keyword_create(keyword, __LOCATION__, name="EXTRAPOLATION_ORDER", &
453 : description="Order for the PS, ASPC extrapolation (typically 2-4) or "// &
454 : "order for the GEXT_PROJ, GEXT_PROJ_QTR extrapolation (typically 4-10). "// &
455 : "Higher order might bring more accuracy, but comes, "// &
456 : "for large systems, also at some cost. "// &
457 : "In some cases, a high order extrapolation is not stable,"// &
458 : " and the order needs to be reduced.", &
459 10643 : usage="EXTRAPOLATION_ORDER {integer}", default_i_val=3)
460 10643 : CALL section_add_keyword(section, keyword)
461 10643 : CALL keyword_release(keyword)
462 :
463 : CALL keyword_create(keyword, __LOCATION__, name="METHOD", &
464 : description="Specifies the electronic structure method that should be employed", &
465 : usage="METHOD GAPW", &
466 : enum_c_vals=s2a("GAPW", "GAPW_XC", "GPW", "LRIGPW", "RIGPW", &
467 : "MNDO", "MNDOD", "AM1", "PM3", "PM6", "PM6-FM", "PDG", "RM1", "PNNL", "DFTB", "xTB", "OFGPW"), &
468 : enum_desc=s2a("Gaussian and augmented plane waves method", &
469 : "Gaussian and augmented plane waves method only for XC", &
470 : "Gaussian and plane waves method", &
471 : "Local resolution of identity method", &
472 : "Resolution of identity method for HXC terms", &
473 : "MNDO semiempirical", "MNDO-d semiempirical", "AM1 semiempirical", &
474 : "PM3 semiempirical", "PM6 semiempirical", "PM6-FM semiempirical", "PDG semiempirical", &
475 : "RM1 semiempirical", &
476 : "PNNL semiempirical", &
477 : "DFTB Density Functional based Tight-Binding", &
478 : "GFN-xTB Extended Tight-Binding", &
479 : "OFGPW Orbital-free GPW method"), &
480 : enum_i_vals=[do_method_gapw, do_method_gapw_xc, do_method_gpw, do_method_lrigpw, do_method_rigpw, &
481 : do_method_mndo, do_method_mndod, do_method_am1, do_method_pm3, &
482 : do_method_pm6, do_method_pm6fm, do_method_pdg, do_method_rm1, &
483 : do_method_pnnl, do_method_dftb, do_method_xtb, do_method_ofgpw], &
484 : citations=[Lippert1997, Lippert1999, Krack2000, VandeVondele2005a, &
485 : VandeVondele2006, Dewar1977, Dewar1985, Rocha2006, Stewart1989, Thiel1992, &
486 : Repasky2002, Stewart2007, VanVoorhis2015, Schenter2008], &
487 159645 : default_i_val=do_method_gpw)
488 10643 : CALL section_add_keyword(section, keyword)
489 10643 : CALL keyword_release(keyword)
490 :
491 : CALL keyword_create(keyword, __LOCATION__, name="CORE_PPL", &
492 : description="Specifies the method used to calculate the local pseudopotential contribution.", &
493 : usage="CORE_PPL ANALYTIC", &
494 : enum_c_vals=s2a("ANALYTIC", "GRID"), &
495 : enum_desc=s2a("Analytic integration of integrals", &
496 : "Numerical integration on real space grid. Lumped together with core charge"), &
497 : enum_i_vals=[do_ppl_analytic, do_ppl_grid], &
498 10643 : default_i_val=do_ppl_analytic)
499 10643 : CALL section_add_keyword(section, keyword)
500 10643 : CALL keyword_release(keyword)
501 :
502 : CALL keyword_create(keyword, __LOCATION__, name="EMBED_RESTART_FILE_NAME", &
503 : description="Root of the file name where to read the embedding "// &
504 : "potential guess.", &
505 : usage="EMBED_RESTART_FILE_NAME <FILENAME>", &
506 10643 : type_of_var=lchar_t)
507 10643 : CALL section_add_keyword(section, keyword)
508 10643 : CALL keyword_release(keyword)
509 :
510 : CALL keyword_create(keyword, __LOCATION__, name="EMBED_CUBE_FILE_NAME", &
511 : description="Root of the file name where to read the embedding "// &
512 : "potential (guess) as a cube. Whitespace-separated cube values are accepted. If "// &
513 : "adjacent values are written without whitespace, each value must occupy a "// &
514 : "13-character E13.5 field.", &
515 : usage="EMBED_CUBE_FILE_NAME <FILENAME>", &
516 10643 : type_of_var=lchar_t)
517 10643 : CALL section_add_keyword(section, keyword)
518 10643 : CALL keyword_release(keyword)
519 :
520 : CALL keyword_create(keyword, __LOCATION__, name="EMBED_SPIN_CUBE_FILE_NAME", &
521 : description="Root of the file name where to read the spin part "// &
522 : "of the embedding potential (guess) as a cube. Whitespace-separated cube values are "// &
523 : "accepted. If adjacent values are written without whitespace, each value must occupy "// &
524 : "a 13-character E13.5 field.", &
525 : usage="EMBED_SPIN_CUBE_FILE_NAME <FILENAME>", &
526 10643 : type_of_var=lchar_t)
527 10643 : CALL section_add_keyword(section, keyword)
528 10643 : CALL keyword_release(keyword)
529 :
530 10643 : CALL create_distribution_section(subsection)
531 10643 : CALL section_add_subsection(section, subsection)
532 10643 : CALL section_release(subsection)
533 :
534 10643 : CALL create_dftb_control_section(subsection)
535 10643 : CALL section_add_subsection(section, subsection)
536 10643 : CALL section_release(subsection)
537 :
538 10643 : CALL create_xtb_control_section(subsection)
539 10643 : CALL section_add_subsection(section, subsection)
540 10643 : CALL section_release(subsection)
541 :
542 10643 : CALL create_se_control_section(subsection)
543 10643 : CALL section_add_subsection(section, subsection)
544 10643 : CALL section_release(subsection)
545 :
546 10643 : CALL create_mulliken_section(subsection)
547 10643 : CALL section_add_subsection(section, subsection)
548 10643 : CALL section_release(subsection)
549 :
550 10643 : CALL create_ddapc_restraint_section(subsection, "DDAPC_RESTRAINT")
551 10643 : CALL section_add_subsection(section, subsection)
552 10643 : CALL section_release(subsection)
553 :
554 10643 : CALL create_cdft_control_section(subsection)
555 10643 : CALL section_add_subsection(section, subsection)
556 10643 : CALL section_release(subsection)
557 :
558 10643 : CALL create_s2_restraint_section(subsection)
559 10643 : CALL section_add_subsection(section, subsection)
560 10643 : CALL section_release(subsection)
561 :
562 10643 : CALL create_lrigpw_section(subsection)
563 10643 : CALL section_add_subsection(section, subsection)
564 10643 : CALL section_release(subsection)
565 :
566 10643 : CALL create_optimize_lri_basis_section(subsection)
567 10643 : CALL section_add_subsection(section, subsection)
568 10643 : CALL section_release(subsection)
569 :
570 : ! Embedding subsections: DFET and DMFET
571 10643 : CALL create_optimize_embed(subsection)
572 10643 : CALL section_add_subsection(section, subsection)
573 10643 : CALL section_release(subsection)
574 :
575 10643 : CALL create_optimize_dmfet(subsection)
576 10643 : CALL section_add_subsection(section, subsection)
577 10643 : CALL section_release(subsection)
578 :
579 10643 : END SUBROUTINE create_qs_section
580 :
581 : ! **************************************************************************************************
582 : !> \brief ...
583 : !> \param section ...
584 : ! **************************************************************************************************
585 10643 : SUBROUTINE create_mulliken_section(section)
586 : TYPE(section_type), POINTER :: section
587 :
588 : TYPE(keyword_type), POINTER :: keyword
589 :
590 10643 : NULLIFY (keyword)
591 10643 : CPASSERT(.NOT. ASSOCIATED(section))
592 : CALL section_create(section, __LOCATION__, name="MULLIKEN_RESTRAINT", &
593 : description="Use mulliken charges in a restraint (check code for details)", &
594 10643 : n_keywords=7, n_subsections=0, repeats=.FALSE.)
595 :
596 : CALL keyword_create(keyword, __LOCATION__, name="STRENGTH", &
597 : description="force constant of the restraint", &
598 10643 : usage="STRENGTH {real} ", default_r_val=0.1_dp)
599 10643 : CALL section_add_keyword(section, keyword)
600 10643 : CALL keyword_release(keyword)
601 :
602 : CALL keyword_create(keyword, __LOCATION__, name="TARGET", &
603 : description="target value of the restraint", &
604 10643 : usage="TARGET {real} ", default_r_val=1._dp)
605 10643 : CALL section_add_keyword(section, keyword)
606 10643 : CALL keyword_release(keyword)
607 :
608 : CALL keyword_create(keyword, __LOCATION__, name="ATOMS", &
609 : description="Specifies the list of atoms that is summed in the restraint", &
610 : usage="ATOMS {integer} {integer} .. {integer}", &
611 10643 : n_var=-1, type_of_var=integer_t)
612 10643 : CALL section_add_keyword(section, keyword)
613 10643 : CALL keyword_release(keyword)
614 :
615 10643 : END SUBROUTINE create_mulliken_section
616 :
617 : ! **************************************************************************************************
618 : !> \brief ...
619 : !> \param section ...
620 : !> \param section_name ...
621 : ! **************************************************************************************************
622 31891 : SUBROUTINE create_ddapc_restraint_section(section, section_name)
623 : TYPE(section_type), POINTER :: section
624 : CHARACTER(len=*), INTENT(in) :: section_name
625 :
626 : TYPE(keyword_type), POINTER :: keyword
627 : TYPE(section_type), POINTER :: print_key
628 :
629 31891 : NULLIFY (keyword, print_key)
630 0 : CPASSERT(.NOT. ASSOCIATED(section))
631 : CALL section_create(section, __LOCATION__, name=TRIM(ADJUSTL(section_name)), &
632 : description="Use DDAPC charges in a restraint (check code for details)", &
633 31891 : n_keywords=7, n_subsections=0, repeats=.TRUE.)
634 :
635 : CALL keyword_create(keyword, __LOCATION__, name="TYPE_OF_DENSITY", &
636 : description="Specifies the type of density used for the fitting", &
637 : usage="TYPE_OF_DENSITY (FULL|SPIN)", &
638 : enum_c_vals=s2a("FULL", "SPIN"), &
639 : enum_i_vals=[do_full_density, do_spin_density], &
640 : enum_desc=s2a("Full density", "Spin density"), &
641 31891 : default_i_val=do_full_density)
642 31891 : CALL section_add_keyword(section, keyword)
643 31891 : CALL keyword_release(keyword)
644 :
645 : CALL keyword_create(keyword, __LOCATION__, name="STRENGTH", &
646 : description="force constant of the restraint", &
647 31891 : usage="STRENGTH {real} ", default_r_val=0.1_dp)
648 31891 : CALL section_add_keyword(section, keyword)
649 31891 : CALL keyword_release(keyword)
650 :
651 : CALL keyword_create(keyword, __LOCATION__, name="TARGET", &
652 : description="target value of the restraint", &
653 31891 : usage="TARGET {real} ", default_r_val=1._dp)
654 31891 : CALL section_add_keyword(section, keyword)
655 31891 : CALL keyword_release(keyword)
656 :
657 : CALL keyword_create(keyword, __LOCATION__, name="ATOMS", &
658 : description="Specifies the list of atoms that is summed in the restraint", &
659 : usage="ATOMS {integer} {integer} .. {integer}", &
660 31891 : n_var=-1, type_of_var=integer_t)
661 31891 : CALL section_add_keyword(section, keyword)
662 31891 : CALL keyword_release(keyword)
663 :
664 : CALL keyword_create(keyword, __LOCATION__, name="COEFF", &
665 : description="Defines the the coefficient of the atom in the atom list (default is one) ", &
666 : usage="COEFF 1.0 -1.0", &
667 31891 : type_of_var=real_t, n_var=-1)
668 31891 : CALL section_add_keyword(section, keyword)
669 31891 : CALL keyword_release(keyword)
670 :
671 : CALL keyword_create(keyword, __LOCATION__, name="FUNCTIONAL_FORM", &
672 : description="Specifies the functional form of the term added", &
673 : usage="FUNCTIONAL_FORM RESTRAINT", &
674 : enum_c_vals=s2a("RESTRAINT", "CONSTRAINT"), &
675 : enum_i_vals=[do_ddapc_restraint, do_ddapc_constraint], &
676 : enum_desc=s2a("Harmonic potential: s*(q-t)**2", "Constraint form: s*(q-t)"), &
677 31891 : default_i_val=do_ddapc_restraint)
678 31891 : CALL section_add_keyword(section, keyword)
679 31891 : CALL keyword_release(keyword)
680 :
681 : CALL cp_print_key_section_create(print_key, __LOCATION__, "program_run_info", &
682 : description="Controls the printing basic info about the method", &
683 31891 : print_level=low_print_level, add_last=add_last_numeric, filename="__STD_OUT__")
684 31891 : CALL section_add_subsection(section, print_key)
685 31891 : CALL section_release(print_key)
686 :
687 31891 : END SUBROUTINE create_ddapc_restraint_section
688 :
689 : ! **************************************************************************************************
690 : !> \brief ...
691 : !> \param section ...
692 : ! **************************************************************************************************
693 10643 : SUBROUTINE create_s2_restraint_section(section)
694 : TYPE(section_type), POINTER :: section
695 :
696 : TYPE(keyword_type), POINTER :: keyword
697 :
698 10643 : NULLIFY (keyword)
699 10643 : CPASSERT(.NOT. ASSOCIATED(section))
700 :
701 : CALL section_create(section, __LOCATION__, name="S2_RESTRAINT", &
702 : description="Use S2 in a re/constraint (OT only)", &
703 10643 : n_keywords=7, n_subsections=0, repeats=.FALSE.)
704 :
705 : CALL keyword_create(keyword, __LOCATION__, name="STRENGTH", &
706 : description="force constant of the restraint", &
707 10643 : usage="STRENGTH {real} ", default_r_val=0.1_dp)
708 10643 : CALL section_add_keyword(section, keyword)
709 10643 : CALL keyword_release(keyword)
710 :
711 : CALL keyword_create(keyword, __LOCATION__, name="TARGET", &
712 : description="target value of the restraint", &
713 10643 : usage="TARGET {real} ", default_r_val=1._dp)
714 10643 : CALL section_add_keyword(section, keyword)
715 10643 : CALL keyword_release(keyword)
716 :
717 : CALL keyword_create(keyword, __LOCATION__, name="FUNCTIONAL_FORM", &
718 : description="Specifies the functional form of the term added", &
719 : usage="FUNCTIONAL_FORM RESTRAINT", &
720 : enum_c_vals=s2a("RESTRAINT", "CONSTRAINT"), &
721 : enum_i_vals=[do_s2_restraint, do_s2_constraint], &
722 : enum_desc=s2a("Harmonic potential: s*(q-t)**2", "Constraint form: s*(q-t)"), &
723 10643 : default_i_val=do_s2_restraint)
724 10643 : CALL section_add_keyword(section, keyword)
725 10643 : CALL keyword_release(keyword)
726 :
727 10643 : END SUBROUTINE create_s2_restraint_section
728 :
729 : ! **************************************************************************************************
730 : !> \brief input section for optional parameters for LRIGPW
731 : !> LRI: local resolution of identity
732 : !> \param section the section to create
733 : !> \author Dorothea Golze [02.2015]
734 : ! **************************************************************************************************
735 42534 : SUBROUTINE create_lrigpw_section(section)
736 : TYPE(section_type), POINTER :: section
737 :
738 : TYPE(keyword_type), POINTER :: keyword
739 :
740 42534 : CPASSERT(.NOT. ASSOCIATED(section))
741 : CALL section_create(section, __LOCATION__, name="LRIGPW", &
742 : description="This section specifies optional parameters for LRIGPW.", &
743 85068 : n_keywords=3, n_subsections=0, repeats=.FALSE., citations=[Golze2017b])
744 :
745 42534 : NULLIFY (keyword)
746 :
747 : CALL keyword_create(keyword, __LOCATION__, name="LRI_OVERLAP_MATRIX", &
748 : description="Specifies whether to calculate the inverse or the "// &
749 : "pseudoinverse of the overlap matrix of the auxiliary "// &
750 : "basis set. Calculating the pseudoinverse is necessary "// &
751 : "for very large auxiliary basis sets, but more expensive. "// &
752 : "Using the pseudoinverse, consistent forces are not "// &
753 : "guaranteed yet.", &
754 : usage="LRI_OVERLAP_MATRIX INVERSE", &
755 : enum_c_vals=s2a("INVERSE", "PSEUDO_INVERSE_SVD", "PSEUDO_INVERSE_DIAG", &
756 : "AUTOSELECT"), &
757 : enum_desc=s2a("Calculate inverse of the overlap matrix.", &
758 : "Calculate the pseuodinverse of the overlap matrix "// &
759 : "using singular value decomposition.", &
760 : "Calculate the pseudoinverse of the overlap matrix "// &
761 : "by prior diagonalization.", &
762 : "Choose automatically for each pair whether to "// &
763 : "calculate the inverse or pseudoinverse based on the "// &
764 : "condition number of the overlap matrix for each pair. "// &
765 : "Calculating the pseudoinverse is much more expensive."), &
766 : enum_i_vals=[do_lri_inv, do_lri_pseudoinv_svd, &
767 : do_lri_pseudoinv_diag, do_lri_inv_auto], &
768 42534 : default_i_val=do_lri_inv)
769 42534 : CALL section_add_keyword(section, keyword)
770 42534 : CALL keyword_release(keyword)
771 :
772 : CALL keyword_create(keyword, __LOCATION__, name="MAX_CONDITION_NUM", &
773 : description="If AUTOSELECT is chosen for LRI_OVERLAP_MATRIX, this "// &
774 : "keyword specifies that the pseudoinverse is calculated "// &
775 : "only if the LOG of the condition number of the lri "// &
776 : "overlap matrix is larger than the given value.", &
777 42534 : usage="MAX_CONDITION_NUM 20.0", default_r_val=20.0_dp)
778 42534 : CALL section_add_keyword(section, keyword)
779 42534 : CALL keyword_release(keyword)
780 :
781 : CALL keyword_create(keyword, __LOCATION__, name="EPS_O3_INT", &
782 : description="Threshold for ABA and ABB integrals in LRI. "// &
783 : "This is used for screening in the KS and "// &
784 : "force calculations (tensor contractions).", &
785 42534 : usage="EPS_O3_INT 1.e-10", default_r_val=1.0e-14_dp)
786 42534 : CALL section_add_keyword(section, keyword)
787 42534 : CALL keyword_release(keyword)
788 :
789 : CALL keyword_create(keyword, __LOCATION__, name="DEBUG_LRI_INTEGRALS", &
790 : description="Debug the integrals needed for LRIGPW.", &
791 : usage="DEBUG_LRI_INTEGRALS TRUE", &
792 42534 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
793 42534 : CALL section_add_keyword(section, keyword)
794 42534 : CALL keyword_release(keyword)
795 :
796 : CALL keyword_create(keyword, __LOCATION__, name="EXACT_1C_TERMS", &
797 : description="Don't use LRI for one center densities.", &
798 : usage="EXACT_1C_TERMS TRUE", &
799 42534 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
800 42534 : CALL section_add_keyword(section, keyword)
801 42534 : CALL keyword_release(keyword)
802 :
803 : CALL keyword_create(keyword, __LOCATION__, name="PPL_RI", &
804 : description="Use LRI/RI for local pseudopotential.", &
805 : usage="PPL_RI TRUE", &
806 42534 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
807 42534 : CALL section_add_keyword(section, keyword)
808 42534 : CALL keyword_release(keyword)
809 :
810 : CALL keyword_create(keyword, __LOCATION__, name="RI_STATISTIC", &
811 : description="Print statistical information on the RI calculation.", &
812 : usage="RI_STATISTIC TRUE", &
813 42534 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
814 42534 : CALL section_add_keyword(section, keyword)
815 42534 : CALL keyword_release(keyword)
816 :
817 : CALL keyword_create(keyword, __LOCATION__, name="DISTANT_PAIR_APPROXIMATION", &
818 : description="Calculate distant pairs using an independent atom approximation.", &
819 : usage="DISTANT_PAIR_APPROXIMATION TRUE", &
820 42534 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
821 42534 : CALL section_add_keyword(section, keyword)
822 42534 : CALL keyword_release(keyword)
823 :
824 : CALL keyword_create(keyword, __LOCATION__, name="DISTANT_PAIR_METHOD", &
825 : description="Method used to separate pair density for distant pairs. "// &
826 : "Options: EW (equal weights); AW (atomic weights); SW (set weights); "// &
827 : "LW (shell function weights)", &
828 : usage="DISTANT_PAIR_METHOD {method}", &
829 42534 : default_c_val="LW")
830 42534 : CALL section_add_keyword(section, keyword)
831 42534 : CALL keyword_release(keyword)
832 :
833 : CALL keyword_create(keyword, __LOCATION__, name="DISTANT_PAIR_RADII", &
834 : description="Inner and outer radii used in distant "// &
835 : "pair separation. Smooth interpolation between inner and outer "// &
836 : "radius is used.", &
837 : usage="DISTANT_PAIR_RADII r_inner {real} r_outer {real} ", &
838 : n_var=2, default_r_vals=[8._dp, 12._dp], unit_str='bohr', &
839 42534 : type_of_var=real_t)
840 42534 : CALL section_add_keyword(section, keyword)
841 42534 : CALL keyword_release(keyword)
842 :
843 : CALL keyword_create(keyword, __LOCATION__, name="SHG_LRI_INTEGRALS", &
844 : description="Uses the SHG (solid harmonic Gaussian) integral "// &
845 : "scheme instead of Obara-Saika", &
846 : usage="SHG_LRI_INTEGRALS TRUE", &
847 : default_l_val=.TRUE., lone_keyword_l_val=.TRUE., &
848 85068 : citations=[Golze2017a])
849 42534 : CALL section_add_keyword(section, keyword)
850 42534 : CALL keyword_release(keyword)
851 :
852 : CALL keyword_create(keyword, __LOCATION__, name="RI_SINV", &
853 : description="Approximation to be used for the inverse of the "// &
854 : "RI overlap matrix. INVF, INVS: exact inverse, apply directly "// &
855 : "for solver (F:full matrix, S:sparsematrix). AINV approximate inverse, use with PCG. "// &
856 : "NONE: no approximation used with CG solver.", &
857 42534 : usage="RI_SINV NONE", default_c_val="INVF")
858 42534 : CALL section_add_keyword(section, keyword)
859 42534 : CALL keyword_release(keyword)
860 :
861 42534 : END SUBROUTINE create_lrigpw_section
862 :
863 : END MODULE input_cp2k_qs
|