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 builds the hartree fock exchange section of the input
10 : !> \par History
11 : !> 09.2007 created
12 : !> \author Manuel Guidon
13 : ! **************************************************************************************************
14 : MODULE input_cp2k_hfx
15 : USE bibliography, ONLY: Guidon2008, &
16 : Guidon2009, &
17 : Lin2016ACE
18 : USE cp_output_handling, ONLY: add_last_numeric, &
19 : cp_print_key_section_create, &
20 : high_print_level, &
21 : medium_print_level
22 : USE input_constants, ONLY: &
23 : do_potential_coulomb, do_potential_gaussian, do_potential_id, do_potential_long, &
24 : do_potential_mix_cl, do_potential_mix_cl_trunc, do_potential_mix_lg, do_potential_short, &
25 : do_potential_truncated, ehrenfest, gaussian, hfx_ri_do_2c_cholesky, hfx_ri_do_2c_diag, &
26 : hfx_ri_do_2c_iter, hfx_library_is_both, hfx_library_is_libGint, &
27 : hfx_library_is_libint
28 : USE input_keyword_types, ONLY: keyword_create, &
29 : keyword_release, &
30 : keyword_type
31 : USE input_section_types, ONLY: section_add_keyword, &
32 : section_add_subsection, &
33 : section_create, &
34 : section_release, &
35 : section_type
36 : USE input_val_types, ONLY: real_t
37 : USE kinds, ONLY: dp
38 : USE string_utilities, ONLY: s2a
39 :
40 : #include "./base/base_uses.f90"
41 :
42 : IMPLICIT NONE
43 : PRIVATE
44 :
45 : LOGICAL, PRIVATE, PARAMETER :: debug_this_module = .FALSE.
46 : CHARACTER(len=*), PARAMETER, PRIVATE :: moduleN = 'input_cp2k_hfx'
47 : INTEGER, PARAMETER, PUBLIC :: ri_mo = 1, ri_pmat = 2
48 :
49 : PUBLIC :: create_hfx_section
50 :
51 : CONTAINS
52 :
53 : ! **************************************************************************************************
54 : !> \brief creates the input section for the hf part
55 : !> \param section the section to create
56 : !> \author Manuel Guidon
57 : ! **************************************************************************************************
58 35796 : SUBROUTINE create_hfx_section(section)
59 : TYPE(section_type), POINTER :: section
60 :
61 : TYPE(keyword_type), POINTER :: keyword
62 : TYPE(section_type), POINTER :: print_key, subsection
63 :
64 35796 : CPASSERT(.NOT. ASSOCIATED(section))
65 : CALL section_create(section, __LOCATION__, name="HF", &
66 : description="Controls Hartree-Fock exchange for hybrid DFT, Hartree-Fock, "// &
67 : "and related post-Hartree-Fock workflows.", &
68 : n_keywords=5, n_subsections=2, repeats=.TRUE., &
69 107388 : citations=[Guidon2008, Guidon2009])
70 :
71 35796 : NULLIFY (keyword, print_key, subsection)
72 :
73 : CALL keyword_create(keyword, __LOCATION__, name="FRACTION", &
74 : description="Fraction of Hartree-Fock exchange to add to the total energy. "// &
75 : "1.0 implies standard Hartree-Fock if used with XC_FUNCTIONAL NONE. "// &
76 : "NOTE: In a mixed potential calculation this should be set to 1.0, otherwise "// &
77 : "all parts are multiplied with this factor. ", &
78 35796 : usage="FRACTION 1.0", default_r_val=1.0_dp)
79 35796 : CALL section_add_keyword(section, keyword)
80 35796 : CALL keyword_release(keyword)
81 :
82 : CALL keyword_create(keyword, __LOCATION__, name="TREAT_LSD_IN_CORE", &
83 : description="Determines how spin densities are taken into account. "// &
84 : "If true, the beta spin density is included via a second in core call. "// &
85 : "If false, alpha and beta spins are done in one shot ", &
86 35796 : usage="TREAT_LSD_IN_CORE TRUE", default_l_val=.FALSE.)
87 35796 : CALL section_add_keyword(section, keyword)
88 35796 : CALL keyword_release(keyword)
89 :
90 : CALL keyword_create( &
91 : keyword, __LOCATION__, &
92 : name="HFX_LIBRARY", &
93 : description="Which library should be used in the calculation of the HF exchange "// &
94 : "(Libint (cpu, default), libGint(gpu, cuda), both(debug,temporary)", &
95 : usage="HFX_LIBRARY libGint", &
96 : enum_c_vals=s2a("libint", "libGint", "both"), &
97 : enum_i_vals=[hfx_library_is_libint, hfx_library_is_libGint, hfx_library_is_both], &
98 : enum_desc=s2a("libint: use the libint library to compute the 2 electron integrals for HFX/r", &
99 : "libGint: use the libGint library to accelerate the calculation of the HF "// &
100 : "exchange on (cuda) GPUs /r", &
101 : "both: temporary debug option, will run both libint and libGint and "// &
102 : "check if the fock matrix is within tolerance"), &
103 35796 : default_i_val=hfx_library_is_libint)
104 35796 : CALL section_add_keyword(section, keyword)
105 35796 : CALL keyword_release(keyword)
106 :
107 : CALL keyword_create(keyword, __LOCATION__, name="PW_HFX", &
108 : description="Compute the Hartree-Fock energy also in the plane wave basis. "// &
109 : "The value is ignored, and intended for debugging only.", &
110 35796 : usage="PW_HFX FALSE", default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
111 35796 : CALL section_add_keyword(section, keyword)
112 35796 : CALL keyword_release(keyword)
113 :
114 : CALL keyword_create(keyword, __LOCATION__, name="PW_HFX_BLOCKSIZE", &
115 : description="Improve the performance of pw_hfx at the cost of some additional memory "// &
116 : "by storing the realspace representation of PW_HFX_BLOCKSIZE states.", &
117 35796 : usage="PW_HFX_BLOCKSIZE 20", default_i_val=20)
118 35796 : CALL section_add_keyword(section, keyword)
119 35796 : CALL keyword_release(keyword)
120 :
121 35796 : NULLIFY (print_key)
122 : CALL cp_print_key_section_create(print_key, __LOCATION__, "HF_INFO", &
123 : description="Controls the printing basic info about hf method", &
124 35796 : print_level=medium_print_level, add_last=add_last_numeric, filename="__STD_OUT__")
125 35796 : CALL section_add_subsection(section, print_key)
126 35796 : CALL section_release(print_key)
127 :
128 35796 : CALL create_hf_pbc_section(subsection)
129 35796 : CALL section_add_subsection(section, subsection)
130 35796 : CALL section_release(subsection)
131 :
132 35796 : CALL create_hf_screening_section(subsection)
133 35796 : CALL section_add_subsection(section, subsection)
134 35796 : CALL section_release(subsection)
135 :
136 35796 : CALL create_hf_potential_section(subsection)
137 35796 : CALL section_add_subsection(section, subsection)
138 35796 : CALL section_release(subsection)
139 :
140 35796 : CALL create_hf_load_balance_section(subsection)
141 35796 : CALL section_add_subsection(section, subsection)
142 35796 : CALL section_release(subsection)
143 :
144 35796 : CALL create_hf_memory_section(subsection)
145 35796 : CALL section_add_subsection(section, subsection)
146 35796 : CALL section_release(subsection)
147 :
148 35796 : CALL create_hf_ri_section(subsection)
149 35796 : CALL section_add_subsection(section, subsection)
150 35796 : CALL section_release(subsection)
151 :
152 35796 : CALL create_hf_ace_section(subsection)
153 35796 : CALL section_add_subsection(section, subsection)
154 35796 : CALL section_release(subsection)
155 :
156 35796 : END SUBROUTINE create_hfx_section
157 :
158 : ! **************************************************************************************************
159 : !> \brief !****f* input_cp2k_dft/create_hf_load_balance_section [1.0] *
160 : !>
161 : !> creates the input section for the hf potential part
162 : !> \param section the section to create
163 : !> \author Manuel Guidon
164 : ! **************************************************************************************************
165 35796 : SUBROUTINE create_hf_load_balance_section(section)
166 : TYPE(section_type), POINTER :: section
167 :
168 : TYPE(keyword_type), POINTER :: keyword
169 : TYPE(section_type), POINTER :: print_key
170 :
171 35796 : CPASSERT(.NOT. ASSOCIATED(section))
172 : CALL section_create(section, __LOCATION__, name="LOAD_BALANCE", &
173 : description="Parameters influencing the load balancing of the HF", &
174 : n_keywords=1, n_subsections=0, repeats=.FALSE., &
175 71592 : citations=[guidon2008])
176 :
177 35796 : NULLIFY (keyword)
178 : CALL keyword_create( &
179 : keyword, __LOCATION__, &
180 : name="NBINS", &
181 : description="Number of bins per process used to group atom quartets.", &
182 : usage="NBINS 32", &
183 35796 : default_i_val=64)
184 35796 : CALL section_add_keyword(section, keyword)
185 35796 : CALL keyword_release(keyword)
186 :
187 : CALL keyword_create( &
188 : keyword, __LOCATION__, &
189 : name="BLOCK_SIZE", &
190 : description="Determines the blocking used for the atomic quartet loops. "// &
191 : "A proper choice can speedup the calculation. The default (-1) is automatic.", &
192 : usage="BLOCK_SIZE 4", &
193 35796 : default_i_val=-1)
194 35796 : CALL section_add_keyword(section, keyword)
195 35796 : CALL keyword_release(keyword)
196 :
197 35796 : NULLIFY (keyword)
198 : CALL keyword_create( &
199 : keyword, __LOCATION__, &
200 : name="RANDOMIZE", &
201 : description="This flag controls the randomization of the bin assignment to processes. "// &
202 : "For highly ordered input structures with a bad load balance, setting "// &
203 : "this flag to TRUE might improve.", &
204 : usage="RANDOMIZE TRUE", &
205 35796 : default_l_val=.FALSE.)
206 35796 : CALL section_add_keyword(section, keyword)
207 35796 : CALL keyword_release(keyword)
208 :
209 35796 : NULLIFY (print_key)
210 : CALL cp_print_key_section_create(print_key, __LOCATION__, "PRINT", &
211 : description="Controls the printing of info about load balance", &
212 35796 : print_level=medium_print_level, add_last=add_last_numeric, filename="__STD_OUT__")
213 35796 : CALL section_add_subsection(section, print_key)
214 :
215 35796 : CALL keyword_release(keyword)
216 : CALL keyword_create(keyword, __LOCATION__, &
217 : name="LOAD_BALANCE_INFO", &
218 : description="Activates the printing of load balance information ", &
219 : default_l_val=.FALSE., &
220 35796 : lone_keyword_l_val=.TRUE.)
221 35796 : CALL section_add_keyword(print_key, keyword)
222 35796 : CALL keyword_release(keyword)
223 35796 : CALL section_release(print_key)
224 :
225 35796 : END SUBROUTINE create_hf_load_balance_section
226 :
227 : ! **************************************************************************************************
228 : !> \brief !****f* input_cp2k_dft/create_hf_potential_section [1.0] *
229 : !>
230 : !> creates the input section for the hf potential part
231 : !> \param section the section to create
232 : !> \author Manuel Guidon
233 : ! **************************************************************************************************
234 35796 : SUBROUTINE create_hf_potential_section(section)
235 : TYPE(section_type), POINTER :: section
236 :
237 : TYPE(keyword_type), POINTER :: keyword
238 :
239 35796 : CPASSERT(.NOT. ASSOCIATED(section))
240 : CALL section_create(section, __LOCATION__, name="INTERACTION_POTENTIAL", &
241 : description="Defines the Coulomb, range-separated, mixed, or truncated interaction "// &
242 : "operator used for Hartree-Fock exchange.", &
243 : n_keywords=1, n_subsections=0, repeats=.FALSE., &
244 107388 : citations=[guidon2008, guidon2009])
245 :
246 35796 : NULLIFY (keyword)
247 : CALL keyword_create( &
248 : keyword, __LOCATION__, &
249 : name="POTENTIAL_TYPE", &
250 : description="Selects the interaction potential used for Hartree-Fock exchange. "// &
251 : "Periodic hybrid calculations commonly use a short-range, truncated, or mixed potential.", &
252 : usage="POTENTIAL_TYPE SHORTRANGE", &
253 : enum_c_vals=s2a("COULOMB", "SHORTRANGE", "LONGRANGE", "MIX_CL", "GAUSSIAN", &
254 : "MIX_LG", "IDENTITY", "TRUNCATED", "MIX_CL_TRUNC"), &
255 : enum_i_vals=[do_potential_coulomb, do_potential_short, do_potential_long, &
256 : do_potential_mix_cl, do_potential_gaussian, do_potential_mix_lg, &
257 : do_potential_id, do_potential_truncated, do_potential_mix_cl_trunc], &
258 : enum_desc=s2a("Coulomb potential: $\frac{1}{r}$", &
259 : "Shortrange potential: $\frac{\mathrm{erfc}(\omega \cdot r)}{r}$", &
260 : "Longrange potential: $\frac{\mathrm{erf}(\omega \cdot r)}{r}$", &
261 : "Mix coulomb and longrange potential: $\frac{1}{r} + \frac{\mathrm{erf}(\omega \cdot r)}{r}$", &
262 : "Damped Gaussian potential: $\exp{(-\omega^2 \cdot r^2)}$", &
263 : "Mix Gaussian and longrange potential: "// &
264 : "$\frac{\mathrm{erf}(\omega \cdot r)}{r} + \exp{(-\omega^2 \cdot r^2)}$", &
265 : "Overlap", &
266 : "Truncated coulomb potential: $1/r \text{ if } (r \lt R_c) \text{ else } 0$", &
267 : "Truncated Mix coulomb and longrange potential, assumes/requires that the erf has fully decayed at R_c"), &
268 35796 : default_i_val=do_potential_coulomb)
269 35796 : CALL section_add_keyword(section, keyword)
270 35796 : CALL keyword_release(keyword)
271 :
272 35796 : NULLIFY (keyword)
273 : CALL keyword_create( &
274 : keyword, __LOCATION__, &
275 : name="OMEGA", &
276 : description="Parameter $\omega$ for short/longrange interaction", &
277 : usage="OMEGA 0.5", &
278 35796 : default_r_val=0.0_dp)
279 35796 : CALL section_add_keyword(section, keyword)
280 35796 : CALL keyword_release(keyword)
281 :
282 : CALL keyword_create(keyword, __LOCATION__, name="SCALE_COULOMB", &
283 : description="Scales Hartree-Fock contribution arising from a coulomb potential. "// &
284 : "Only valid when doing a mixed potential calculation", &
285 35796 : usage="SCALE_COULOMB 1.0", default_r_val=1.0_dp)
286 35796 : CALL section_add_keyword(section, keyword)
287 35796 : CALL keyword_release(keyword)
288 :
289 : CALL keyword_create(keyword, __LOCATION__, name="SCALE_LONGRANGE", &
290 : description="Scales Hartree-Fock contribution arising from a longrange potential. "// &
291 : "Only valid when doing a mixed potential calculation", &
292 35796 : usage="SCALE_LONGRANGE 1.0", default_r_val=1.0_dp)
293 35796 : CALL section_add_keyword(section, keyword)
294 35796 : CALL keyword_release(keyword)
295 :
296 : CALL keyword_create(keyword, __LOCATION__, name="SCALE_GAUSSIAN", &
297 : description="Scales Hartree-Fock contribution arising from a gaussian potential. "// &
298 : "Only valid when doing a mixed potential calculation", &
299 35796 : usage="SCALE_GAUSSIAN 1.0", default_r_val=1.0_dp)
300 35796 : CALL section_add_keyword(section, keyword)
301 35796 : CALL keyword_release(keyword)
302 :
303 : CALL keyword_create(keyword, __LOCATION__, name="CUTOFF_RADIUS", &
304 : description="Cutoff radius for the truncated $\frac{1}{r}$ potential, or screening range "// &
305 : "for the short-range $\frac{\mathrm{erfc}(\omega \cdot r)}{r}$ potential. For truncated Coulomb "// &
306 : "in a periodic cell, choose a radius compatible with the cell dimensions. If omitted for "// &
307 : "a short-range potential, the default screening range is solved from "// &
308 : "$\frac{\mathrm{erfc}(\omega \cdot r)}{r} = \epsilon_{\mathrm{schwarz}}$ "// &
309 : "by Newton-Raphson method, with $\epsilon_{\mathrm{schwarz}}$ set by SCREENING/EPS_SCHWARZ", &
310 : usage="CUTOFF_RADIUS 10.0", type_of_var=real_t, & ! default_r_val=10.0_dp,&
311 35796 : unit_str="angstrom")
312 35796 : CALL section_add_keyword(section, keyword)
313 35796 : CALL keyword_release(keyword)
314 :
315 : CALL keyword_create( &
316 : keyword, __LOCATION__, &
317 : name="T_C_G_DATA", &
318 : description="Location of the file t_c_g.dat that contains the data for the "// &
319 : "evaluation of the truncated gamma function ", &
320 : usage="T_C_G_DATA /data/t_c_g.dat", &
321 35796 : default_c_val="t_c_g.dat")
322 35796 : CALL section_add_keyword(section, keyword)
323 35796 : CALL keyword_release(keyword)
324 :
325 35796 : END SUBROUTINE create_hf_potential_section
326 :
327 : !****f* input_cp2k_dft/create_hf_screening_section [1.0] *
328 :
329 : ! **************************************************************************************************
330 : !> \brief creates the input section for the hf screening part
331 : !> \param section the section to create
332 : !> \author Manuel Guidon
333 : ! **************************************************************************************************
334 35796 : SUBROUTINE create_hf_screening_section(section)
335 : TYPE(section_type), POINTER :: section
336 :
337 : TYPE(keyword_type), POINTER :: keyword
338 :
339 35796 : CPASSERT(.NOT. ASSOCIATED(section))
340 : CALL section_create(section, __LOCATION__, name="SCREENING", &
341 : description="Controls screening thresholds for Hartree-Fock exchange integrals.", &
342 : n_keywords=1, n_subsections=0, repeats=.FALSE., &
343 107388 : citations=[guidon2008, guidon2009])
344 :
345 35796 : NULLIFY (keyword)
346 : CALL keyword_create( &
347 : keyword, __LOCATION__, &
348 : name="EPS_SCHWARZ", &
349 : description="Schwarz inequality threshold for screening near-field electronic repulsion integrals. "// &
350 : "Tighter values reduce screening error but increase cost.", &
351 : usage="EPS_SCHWARZ 1.0E-6", &
352 35796 : default_r_val=1.0E-10_dp)
353 35796 : CALL section_add_keyword(section, keyword)
354 35796 : CALL keyword_release(keyword)
355 :
356 35796 : NULLIFY (keyword)
357 : CALL keyword_create( &
358 : keyword, __LOCATION__, &
359 : name="EPS_SCHWARZ_FORCES", &
360 : description="Schwarz threshold used for force-related electronic repulsion integrals. "// &
361 : "This is approximately the force accuracy and should normally be similar to EPS_SCF. "// &
362 : "Default value is 100*EPS_SCHWARZ.", &
363 : usage="EPS_SCHWARZ_FORCES 1.0E-5", &
364 35796 : default_r_val=1.0E-6_dp)
365 35796 : CALL section_add_keyword(section, keyword)
366 35796 : CALL keyword_release(keyword)
367 :
368 35796 : NULLIFY (keyword)
369 : CALL keyword_create( &
370 : keyword, __LOCATION__, &
371 : name="SCREEN_P_FORCES", &
372 : description="Screens the electronic repulsion integrals for the forces "// &
373 : "using the density matrix. Will be disabled for the "// &
374 : "response part of forces in MP2/RPA/TDDFT. "// &
375 : "This results in a significant speedup for large systems, "// &
376 : "but might require a somewhat tigher EPS_SCHWARZ_FORCES.", &
377 : usage="SCREEN_P_FORCES TRUE", &
378 35796 : default_l_val=.TRUE.)
379 35796 : CALL section_add_keyword(section, keyword)
380 35796 : CALL keyword_release(keyword)
381 :
382 35796 : NULLIFY (keyword)
383 : CALL keyword_create(keyword, __LOCATION__, name="SCREEN_ON_INITIAL_P", &
384 : description="Screen on an initial density matrix. For the first MD step"// &
385 : " this matrix must be provided by a Restart File.", &
386 35796 : usage="SCREEN_ON_INITIAL_P TRUE", default_l_val=.FALSE.)
387 35796 : CALL section_add_keyword(section, keyword)
388 35796 : CALL keyword_release(keyword)
389 :
390 35796 : NULLIFY (keyword)
391 : CALL keyword_create(keyword, __LOCATION__, name="P_SCREEN_CORRECTION_FACTOR", &
392 : description="Recalculates integrals on the fly if the actual density matrix is"// &
393 : " larger by a given factor than the initial one. If the factor is set"// &
394 : " to 0.0_dp, this feature is disabled.", &
395 35796 : usage="P_SCREEN_CORRECTION_FACTOR 0.0_dp", default_r_val=0.0_dp)
396 35796 : CALL section_add_keyword(section, keyword)
397 35796 : CALL keyword_release(keyword)
398 :
399 35796 : END SUBROUTINE create_hf_screening_section
400 :
401 : ! **************************************************************************************************
402 : !> \brief creates the input section for the hf-pbc part
403 : !> \param section the section to create
404 : !> \author Manuel Guidon
405 : ! **************************************************************************************************
406 35796 : SUBROUTINE create_hf_pbc_section(section)
407 : TYPE(section_type), POINTER :: section
408 :
409 : TYPE(keyword_type), POINTER :: keyword
410 :
411 35796 : CPASSERT(.NOT. ASSOCIATED(section))
412 : CALL section_create(section, __LOCATION__, name="PERIODIC", &
413 : description="Sets up periodic boundary condition parameters if requested ", &
414 : n_keywords=1, n_subsections=0, repeats=.FALSE., &
415 107388 : citations=[guidon2008, guidon2009])
416 35796 : NULLIFY (keyword)
417 : CALL keyword_create( &
418 : keyword, __LOCATION__, &
419 : name="NUMBER_OF_SHELLS", &
420 : description="Number of shells taken into account for periodicity. "// &
421 : "By default, cp2k tries to automatically evaluate this number. "// &
422 : "This algorithm might be to conservative, resulting in some overhead. "// &
423 : "You can try to adjust this number in order to make a calculation cheaper. ", &
424 : usage="NUMBER_OF_SHELLS 2", &
425 35796 : default_i_val=-1)
426 35796 : CALL section_add_keyword(section, keyword)
427 35796 : CALL keyword_release(keyword)
428 :
429 35796 : END SUBROUTINE create_hf_pbc_section
430 :
431 : ! **************************************************************************************************
432 : !> \brief creates the input section for the hf-memory part
433 : !> \param section the section to create
434 : !> \author Manuel Guidon
435 : ! **************************************************************************************************
436 35796 : SUBROUTINE create_hf_memory_section(section)
437 : TYPE(section_type), POINTER :: section
438 :
439 : TYPE(keyword_type), POINTER :: keyword
440 :
441 35796 : CPASSERT(.NOT. ASSOCIATED(section))
442 : CALL section_create(section, __LOCATION__, name="MEMORY", &
443 : description="Sets up memory parameters for the storage of the ERI's if requested ", &
444 : n_keywords=1, n_subsections=0, repeats=.FALSE., &
445 71592 : citations=[guidon2008])
446 35796 : NULLIFY (keyword)
447 : CALL keyword_create( &
448 : keyword, __LOCATION__, &
449 : name="EPS_STORAGE_SCALING", &
450 : variants=["EPS_STORAGE"], &
451 : description="Scaling factor to scale eps_schwarz. Storage threshold for compression "// &
452 : "will be EPS_SCHWARZ*EPS_STORAGE_SCALING.", &
453 : usage="EPS_STORAGE 1.0E-2", &
454 71592 : default_r_val=1.0E0_dp)
455 35796 : CALL section_add_keyword(section, keyword)
456 35796 : CALL keyword_release(keyword)
457 :
458 : CALL keyword_create( &
459 : keyword, __LOCATION__, &
460 : name="MAX_MEMORY", &
461 : description="Defines the maximum amount of memory [MiB] to be consumed by the full HFX module. "// &
462 : "All temporary buffers and helper arrays are subtracted from this number. "// &
463 : "What remains will be used for storage of integrals. NOTE: This number "// &
464 : "is assumed to represent the memory available to one MPI process. "// &
465 : "When running a threaded version, cp2k automatically takes care of "// &
466 : "distributing the memory among all the threads within a process.", &
467 : usage="MAX_MEMORY 256", &
468 35796 : default_i_val=512)
469 35796 : CALL section_add_keyword(section, keyword)
470 35796 : CALL keyword_release(keyword)
471 :
472 : CALL keyword_create( &
473 : keyword, __LOCATION__, &
474 : name="STORAGE_LOCATION", &
475 : description="Loaction where ERI's are stored if MAX_DISK_SPACE /=0 "// &
476 : "Expects a path to a directory. ", &
477 : usage="STORAGE_LOCATION /data/scratch", &
478 35796 : default_c_val=".")
479 35796 : CALL section_add_keyword(section, keyword)
480 35796 : CALL keyword_release(keyword)
481 :
482 : CALL keyword_create( &
483 : keyword, __LOCATION__, &
484 : name="MAX_DISK_SPACE", &
485 : description="Defines the maximum amount of disk space [MiB] used to store precomputed "// &
486 : "compressed four-center integrals. If 0, nothing is stored to disk", &
487 : usage="MAX_DISK_SPACE 256", &
488 35796 : default_i_val=0)
489 35796 : CALL section_add_keyword(section, keyword)
490 35796 : CALL keyword_release(keyword)
491 :
492 : CALL keyword_create(keyword, __LOCATION__, name="TREAT_FORCES_IN_CORE", &
493 : description="Determines whether the derivative ERI's should be stored to RAM or not. "// &
494 : "Only meaningful when performing Ehrenfest MD. "// &
495 : "Memory usage is defined via MAX_MEMORY, i.e. the memory is shared wit the energy ERI's.", &
496 35796 : usage="TREAT_FORCES_IN_CORE TRUE", default_l_val=.FALSE.)
497 35796 : CALL section_add_keyword(section, keyword)
498 35796 : CALL keyword_release(keyword)
499 :
500 35796 : END SUBROUTINE create_hf_memory_section
501 :
502 : ! **************************************************************************************************
503 : !> \brief ...
504 : !> \param section ...
505 : ! **************************************************************************************************
506 35796 : SUBROUTINE create_hf_ri_section(section)
507 : TYPE(section_type), POINTER :: section
508 :
509 : TYPE(keyword_type), POINTER :: keyword
510 : TYPE(section_type), POINTER :: print_key, subsection
511 :
512 35796 : NULLIFY (keyword, print_key, subsection)
513 :
514 35796 : CPASSERT(.NOT. ASSOCIATED(section))
515 : CALL section_create(section, __LOCATION__, name="RI", &
516 : description="Parameters for RI methods in HFX, including RI-HFXk with "// &
517 : "k-point sampling. All keywords relevant to RI-HFXk have an "// &
518 35796 : "alias starting with KP_")
519 :
520 : CALL keyword_create(keyword, __LOCATION__, name="_SECTION_PARAMETERS_", &
521 : description="controls the activation of RI", &
522 : usage="&RI T", &
523 : default_l_val=.FALSE., &
524 35796 : lone_keyword_l_val=.TRUE.)
525 35796 : CALL section_add_keyword(section, keyword)
526 35796 : CALL keyword_release(keyword)
527 :
528 : CALL keyword_create(keyword, __LOCATION__, name="EPS_FILTER", &
529 : description="Filter threshold for DBT tensor contraction.", &
530 : variants=["KP_EPS_FILTER"], &
531 71592 : default_r_val=1.0E-09_dp)
532 35796 : CALL section_add_keyword(section, keyword)
533 35796 : CALL keyword_release(keyword)
534 :
535 : CALL keyword_create(keyword, __LOCATION__, name="EPS_FILTER_2C", &
536 : description="Filter threshold for 2c integrals. Default should be kept.", &
537 35796 : default_r_val=1.0E-12_dp)
538 35796 : CALL section_add_keyword(section, keyword)
539 35796 : CALL keyword_release(keyword)
540 :
541 : CALL keyword_create(keyword, __LOCATION__, &
542 : name="EPS_STORAGE_SCALING", &
543 : description="Scaling factor to scale EPS_FILTER for storage of 3-center integrals. Storage threshold "// &
544 : "will be EPS_FILTER*EPS_STORAGE_SCALING.", &
545 35796 : default_r_val=0.01_dp)
546 35796 : CALL section_add_keyword(section, keyword)
547 35796 : CALL keyword_release(keyword)
548 :
549 : CALL keyword_create(keyword, __LOCATION__, name="EPS_FILTER_MO", &
550 : description="Filter threshold for contraction of 3-center integrals with MOs. "// &
551 : "Default should be kept.", &
552 35796 : default_r_val=1.0E-12_dp)
553 35796 : CALL section_add_keyword(section, keyword)
554 35796 : CALL keyword_release(keyword)
555 :
556 : CALL keyword_create(keyword, __LOCATION__, name="OMEGA", &
557 : description="The range parameter for the short range operator (in 1/a0). "// &
558 : "Default is OMEGA from INTERACTION_POTENTIAL. ", &
559 : variants=["KP_OMEGA"], &
560 : default_r_val=0.0_dp, &
561 71592 : repeats=.FALSE.)
562 35796 : CALL section_add_keyword(section, keyword)
563 35796 : CALL keyword_release(keyword)
564 :
565 : CALL keyword_create(keyword, __LOCATION__, name="CUTOFF_RADIUS", &
566 : description="Cutoff radius for a truncated Coulomb fitting metric or screening range "// &
567 : "for a short-range fitting metric. The truncated metric defaults to the "// &
568 : "exchange radius. The short-range metric defaults to the range set by EPS_SCHWARZ.", &
569 : variants=["KP_CUTOFF_RADIUS"], &
570 : default_r_val=0.0_dp, &
571 : repeats=.FALSE., &
572 71592 : unit_str="angstrom")
573 35796 : CALL section_add_keyword(section, keyword)
574 35796 : CALL keyword_release(keyword)
575 :
576 : CALL keyword_create(keyword, __LOCATION__, name="SCALE_COULOMB", &
577 : description="Scales Hartree-Fock contribution arising from a coulomb potential. "// &
578 : "Only valid when doing a mixed potential calculation. "// &
579 : "Default is SCALE_COULOMB from INTERACTION_POTENTIAL", &
580 35796 : usage="SCALE_COULOMB 1.0", default_r_val=1.0_dp)
581 35796 : CALL section_add_keyword(section, keyword)
582 35796 : CALL keyword_release(keyword)
583 :
584 : CALL keyword_create(keyword, __LOCATION__, name="SCALE_LONGRANGE", &
585 : description="Scales Hartree-Fock contribution arising from a longrange potential. "// &
586 : "Only valid when doing a mixed potential calculation. "// &
587 : "Default if SCALE_LONGRANGE from INTERACTION_POTENTIAL", &
588 35796 : usage="SCALE_LONGRANGE 1.0", default_r_val=1.0_dp)
589 35796 : CALL section_add_keyword(section, keyword)
590 35796 : CALL keyword_release(keyword)
591 :
592 : CALL keyword_create(keyword, __LOCATION__, name="KP_NGROUPS", &
593 : description="The number of MPI subgroup that work in parallel during the SCF. "// &
594 : "The default value is 1. Using N subgroups should speed up the "// &
595 : "calculation by a factor ~N, at the cost of N times more memory usage.", &
596 : variants=["NGROUPS"], &
597 : usage="KP_NGROUPS {int}", &
598 : repeats=.FALSE., &
599 71592 : default_i_val=1)
600 35796 : CALL section_add_keyword(section, keyword)
601 35796 : CALL keyword_release(keyword)
602 :
603 : CALL keyword_create(keyword, __LOCATION__, name="KP_USE_DELTA_P", &
604 : description="This kweyword controls whether the KS matrix at each SCF cycle "// &
605 : "is built by adding the contribution of the denisty difference (wrt to previous step) "// &
606 : "to the KS matrix of the previous step. As the SCF converges, the density fluctuations "// &
607 : "get smaller and sparsity increases, leading to faster SCF steps. Not always "// &
608 : "numerically stable => turn off if SCF struggles to converge.", &
609 : variants=s2a("USE_DELTA_P", "KP_USE_P_DIFF", "USE_P_DIFF"), &
610 : usage="KP_USE_DELTA_P {logical}", &
611 : repeats=.FALSE., &
612 35796 : default_l_val=.TRUE.)
613 35796 : CALL section_add_keyword(section, keyword)
614 35796 : CALL keyword_release(keyword)
615 :
616 : CALL keyword_create(keyword, __LOCATION__, name="KP_STACK_SIZE", &
617 : description="When doing contraction over periodic cells of the type: "// &
618 : "T_mu^a,nu^b,P^c = (mu^a nu^b | Q^d) * (Q^d | P^c), with "// &
619 : "a,b,c,d labeling cells, there are in principle Ncells "// &
620 : "contractions taking place. Because a smaller number of "// &
621 : "contractions involving larger tensors is more efficient, "// &
622 : "the tensors can be stacked along the d direction. STCK_SIZE "// &
623 : "controls the size of this stack. Larger stacks are more efficient, "// &
624 : "but required more memory.", &
625 : variants=["STACK_SIZE"], &
626 : usage="KP_STACK_SIZE {int}", &
627 : repeats=.FALSE., &
628 71592 : default_i_val=16)
629 35796 : CALL section_add_keyword(section, keyword)
630 35796 : CALL keyword_release(keyword)
631 :
632 : CALL keyword_create(keyword, __LOCATION__, name="KP_RI_BUMP_FACTOR", &
633 : variants=s2a("RI_BUMP", "BUMP", "BUMP_FACTOR"), &
634 : description="In KP-RI-HFX, the extended RI basis set has a bump radius. "// &
635 : "All basis elements within that radius contribute with full weight. "// &
636 : "All basis elements beyond that radius have decaying weight, from "// &
637 : "1 at the bump radius, to zero at the RI extension radius. The "// &
638 : "bump radius is calculated as a fraction of the RI extension radius: "// &
639 : "bump radius = KP_RI_NUMP_FACTOR * RI extension radius", &
640 : default_r_val=0.85_dp, &
641 35796 : repeats=.FALSE.)
642 35796 : CALL section_add_keyword(section, keyword)
643 35796 : CALL keyword_release(keyword)
644 :
645 : CALL keyword_create(keyword, __LOCATION__, name="RI_METRIC", &
646 : description="The type of RI operator. "// &
647 : "Default is POTENTIAL_TYPE from INTERACTION_POTENTIAL. "// &
648 : "The standard "// &
649 : "Coulomb operator cannot be used in periodic systems.", &
650 : usage="RI_METRIC {string}", &
651 : repeats=.FALSE., &
652 : variants=["KP_RI_METRIC"], &
653 : default_i_val=0, &
654 : enum_c_vals=s2a("HFX", "COULOMB", "IDENTITY", "TRUNCATED", "SHORTRANGE"), &
655 : enum_desc=s2a("Same as HFX operator", &
656 : "Standard Coulomb operator: 1/r", &
657 : "Overlap", &
658 : "Truncated Coulomb operator: 1/r if (r<R_c), 0 otherwise ", &
659 : "Short range: erfc(omega*r)/r"), &
660 : enum_i_vals=[0, do_potential_coulomb, do_potential_id, do_potential_truncated, &
661 71592 : do_potential_short])
662 35796 : CALL section_add_keyword(section, keyword)
663 35796 : CALL keyword_release(keyword)
664 :
665 : CALL keyword_create(keyword, __LOCATION__, name="2C_MATRIX_FUNCTIONS", &
666 : description="Methods for matrix inverse and matrix square root.", &
667 : default_i_val=hfx_ri_do_2c_cholesky, &
668 : enum_c_vals=s2a("DIAG", "CHOLESKY", "ITER"), &
669 : enum_desc=s2a("Diagonalization with eigenvalue quenching: stable", &
670 : "Cholesky: not stable in case of ill-conditioned RI basis", &
671 : "Iterative algorithms: linear scaling "// &
672 : "Hotelling's method for inverse and Newton-Schulz iteration for matrix square root"), &
673 35796 : enum_i_vals=[hfx_ri_do_2c_diag, hfx_ri_do_2c_cholesky, hfx_ri_do_2c_iter])
674 35796 : CALL section_add_keyword(section, keyword)
675 35796 : CALL keyword_release(keyword)
676 :
677 : CALL keyword_create(keyword, __LOCATION__, name="EPS_EIGVAL", &
678 : description="Throw away linear combinations of RI basis functions with a small eigenvalue, "// &
679 : "this is applied only if 2C_MATRIX_FUNCTIONS DIAG", &
680 35796 : default_r_val=1.0e-7_dp)
681 35796 : CALL section_add_keyword(section, keyword)
682 35796 : CALL keyword_release(keyword)
683 :
684 : CALL keyword_create(keyword, __LOCATION__, name="CHECK_2C_MATRIX", &
685 : description="Report accuracy for the inverse/sqrt of the 2-center integral matrix.", &
686 35796 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
687 35796 : CALL section_add_keyword(section, keyword)
688 35796 : CALL keyword_release(keyword)
689 :
690 : CALL keyword_create( &
691 : keyword, __LOCATION__, &
692 : name="CALC_COND_NUM", &
693 : variants=["CALC_CONDITION_NUMBER"], &
694 : description="Calculate the condition number of integral matrices.", &
695 : usage="CALC_COND_NUM", &
696 : default_l_val=.FALSE., &
697 71592 : lone_keyword_l_val=.TRUE.)
698 35796 : CALL section_add_keyword(section, keyword)
699 35796 : CALL keyword_release(keyword)
700 :
701 : CALL keyword_create(keyword, __LOCATION__, name="SQRT_ORDER", &
702 : description="Order of the iteration method for the calculation of "// &
703 : "the sqrt of 2-center integral matrix.", &
704 35796 : default_i_val=3)
705 35796 : CALL section_add_keyword(section, keyword)
706 35796 : CALL keyword_release(keyword)
707 :
708 : CALL keyword_create(keyword, __LOCATION__, name="EPS_LANCZOS", &
709 : description="Threshold used for lanczos estimates.", &
710 35796 : default_r_val=1.0E-3_dp)
711 35796 : CALL section_add_keyword(section, keyword)
712 35796 : CALL keyword_release(keyword)
713 :
714 : CALL keyword_create(keyword, __LOCATION__, name="EPS_PGF_ORB", &
715 : description="Sets precision of the integral tensors.", &
716 : variants=["KP_EPS_PGF_ORB"], &
717 71592 : default_r_val=1.0E-5_dp)
718 35796 : CALL section_add_keyword(section, keyword)
719 35796 : CALL keyword_release(keyword)
720 :
721 : CALL keyword_create(keyword, __LOCATION__, name="MAX_ITER_LANCZOS", &
722 : description="Maximum number of lanczos iterations.", &
723 35796 : usage="MAX_ITER_LANCZOS ", default_i_val=500)
724 35796 : CALL section_add_keyword(section, keyword)
725 35796 : CALL keyword_release(keyword)
726 :
727 : CALL keyword_create(keyword, __LOCATION__, name="RI_FLAVOR", &
728 : description="Flavor of RI: how to contract 3-center integrals", &
729 : enum_c_vals=s2a("MO", "RHO"), &
730 : enum_desc=s2a("with MO coefficients", "with density matrix"), &
731 : enum_i_vals=[ri_mo, ri_pmat], &
732 35796 : default_i_val=ri_pmat)
733 35796 : CALL section_add_keyword(section, keyword)
734 35796 : CALL keyword_release(keyword)
735 :
736 : CALL keyword_create(keyword, __LOCATION__, name="MIN_BLOCK_SIZE", &
737 : description="Minimum tensor block size.", &
738 35796 : default_i_val=4)
739 35796 : CALL section_add_keyword(section, keyword)
740 35796 : CALL keyword_release(keyword)
741 :
742 : CALL keyword_create(keyword, __LOCATION__, name="MAX_BLOCK_SIZE_MO", &
743 : description="Maximum tensor block size for MOs.", &
744 35796 : default_i_val=64)
745 35796 : CALL section_add_keyword(section, keyword)
746 35796 : CALL keyword_release(keyword)
747 :
748 : CALL keyword_create(keyword, __LOCATION__, name="MEMORY_CUT", &
749 : description="Memory reduction factor. This keyword controls the batching of tensor "// &
750 : "contractions into smaller, more manageable chunks. The details vary "// &
751 : "depending on the RI_FLAVOR.", &
752 35796 : default_i_val=3)
753 35796 : CALL section_add_keyword(section, keyword)
754 35796 : CALL keyword_release(keyword)
755 :
756 : CALL keyword_create(keyword, __LOCATION__, name="FLAVOR_SWITCH_MEMORY_CUT", &
757 : description="Memory reduction factor to be applied upon RI_FLAVOR switching "// &
758 : "from MO to RHO. The RHO flavor typically requires more memory, "// &
759 : "and depending on the ressources available, a higher MEMORY_CUT.", &
760 35796 : default_i_val=3)
761 35796 : CALL section_add_keyword(section, keyword)
762 35796 : CALL keyword_release(keyword)
763 :
764 : CALL section_create(subsection, __LOCATION__, name="PRINT", &
765 : description="Section of possible print options in the RI-HFX code.", &
766 35796 : n_keywords=0, n_subsections=1, repeats=.FALSE.)
767 :
768 : CALL keyword_create(keyword, __LOCATION__, name="KP_RI_PROGRESS_BAR", &
769 : variants=s2a("PROGRESS_BAR", "PROGRESS", "KP_PROGRESS", "KP_PROGRESS_BAR"), &
770 : description="Whether a progress bar for individual SCF steps should be printed. "// &
771 : "In RI-HFXk, an expensive triple loop runs over periodic images and "// &
772 : "atomic pairs. This printing option tracks the progress of this loop "// &
773 : "in real time. Note that some work also takes place before the loop "// &
774 : "starts, and the time spent doing it depends on the value of "// &
775 : "KP_STACK_SIZE (larger = faster, but more memory used).", &
776 35796 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
777 35796 : CALL section_add_keyword(subsection, keyword)
778 35796 : CALL keyword_release(keyword)
779 :
780 : !TODO: add a incentive to restart from GGA calculation? Test that it improves things
781 : CALL keyword_create(keyword, __LOCATION__, name="KP_RI_MEMORY_ESTIMATE", &
782 : variants=s2a("MEMORY_ESTIMATE"), &
783 : description="Calculate and print a rough upper bound estimate of the memory "// &
784 : "required to run a RI-HFXk ENERGY calculation. Note that a fair "// &
785 : "amount of computing must take place before this estimate can be "// &
786 : "produced. If the calculation runs out of memory beforehand, "// &
787 : "use more resources, or change the value of memory related keywords "// &
788 : "(e.g. KP_NGROUPS, interaction potential parameters, KP_STACK_SIZE). "// &
789 : "The estimate is more accurate when restarting from a (GGA) wavefunction. "// &
790 : "Calculations involving forces will require more memory than this estimate.", &
791 35796 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
792 35796 : CALL section_add_keyword(subsection, keyword)
793 35796 : CALL keyword_release(keyword)
794 :
795 : CALL cp_print_key_section_create(print_key, __LOCATION__, "RI_INFO", &
796 : description="Controls the printing of DBCSR tensor log in RI HFX.", &
797 35796 : print_level=high_print_level, add_last=add_last_numeric, filename="__STD_OUT__")
798 35796 : CALL section_add_subsection(subsection, print_key)
799 35796 : CALL section_release(print_key)
800 :
801 : CALL cp_print_key_section_create(print_key, __LOCATION__, "RI_DENSITY_COEFFS", &
802 : description="Controls the printing of the projection of the elecontric "// &
803 : "density on the RI_HFX basis. n(r) = sum_s c_s*phi_RI_s(r), "// &
804 : "where c_s = sum_pqr P_pq (pq|r) (r|s)^-1 and | is the RI_METRIC", &
805 : print_level=high_print_level, filename="RI_DENSITY_COEFFS", &
806 35796 : common_iter_levels=3)
807 :
808 : CALL keyword_create(keyword, __LOCATION__, name="MULTIPLY_BY_RI_2C_INTEGRALS", &
809 : variants=s2a("MULT_BY_RI", "MULT_BY_S", "MULT_BY_RI_INTS"), &
810 : description="Whether the RI density coefficients to be printed should "// &
811 : "be pre-multiplied by the RI_METRIC 2c-integrals: (r|s)*C_s. "// &
812 : "Not compatible with the SKIP_RI_METRIC keyword.", &
813 35796 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
814 35796 : CALL section_add_keyword(print_key, keyword)
815 35796 : CALL keyword_release(keyword)
816 :
817 : CALL keyword_create(keyword, __LOCATION__, name="SKIP_RI_METRIC", &
818 : variants=s2a("SKIP_INVERSE", "SKIP_2C_INTS", "SKIP_2C_INTEGRALS"), &
819 : description="Skip the calculation, inversion, and contraction of the 2-center RI "// &
820 : "metric integrals. The printed coefficients are only the contraction of the "// &
821 : "density matrix with the 3-center integrals, i.e. c_r = sum_pq P_pq (pq|r) "// &
822 : "Allows for memory savings when printing the RI density coefficients.", &
823 35796 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
824 35796 : CALL section_add_keyword(print_key, keyword)
825 35796 : CALL keyword_release(keyword)
826 :
827 : CALL keyword_create(keyword, __LOCATION__, name="FILE_FORMAT", &
828 : description="Format of file containing density fitting coefficients: "// &
829 : "BASIC(default)-original format; EXTENDED-format with basis set info.", &
830 35796 : default_c_val="BASIC")
831 35796 : CALL section_add_keyword(print_key, keyword)
832 35796 : CALL keyword_release(keyword)
833 :
834 35796 : CALL section_add_subsection(subsection, print_key)
835 35796 : CALL section_release(print_key)
836 :
837 : CALL cp_print_key_section_create(print_key, __LOCATION__, "RI_METRIC_2C_INTS", &
838 : description="Controls the printing of RI 2-center integrals for the "// &
839 : "HFX potential.", &
840 : print_level=high_print_level, filename="RI_2C_INTS", &
841 35796 : common_iter_levels=3)
842 35796 : CALL section_add_subsection(subsection, print_key)
843 35796 : CALL section_release(print_key)
844 :
845 35796 : CALL section_add_subsection(section, subsection)
846 35796 : CALL section_release(subsection)
847 :
848 35796 : END SUBROUTINE create_hf_ri_section
849 :
850 : ! ACE Keyword section
851 :
852 35796 : SUBROUTINE create_hf_ace_section(section)
853 : TYPE(section_type), POINTER :: section
854 :
855 : TYPE(keyword_type), POINTER :: keyword
856 :
857 35796 : CPASSERT(.NOT. ASSOCIATED(section))
858 : CALL section_create(section, __LOCATION__, &
859 : name="ACE", &
860 : description="Parameters for the Adaptively Compressed Exchange (ACE) "// &
861 : "operator. ACE replaces the full exchange matrix with a "// &
862 : "low-rank projector K_ACE = -W*W^T after an initial "// &
863 : "full HFX build, reducing cost of subsequent SCF steps. "// &
864 : "NOTE: ACE requires diagonalization-based SCF. "// &
865 : "It is incompatible with orbital transformation (OT) methods "// &
866 : "because OT does not construct MO coefficients.", &
867 : n_keywords=2, &
868 : n_subsections=0, &
869 : repeats=.FALSE., &
870 71592 : citations=[Lin2016ACE])
871 :
872 35796 : NULLIFY (keyword)
873 :
874 : ! --- ACTIVE ---
875 : CALL keyword_create(keyword, __LOCATION__, &
876 : name="ACTIVE", &
877 : description="Enable the ACE approximation for HFX. "// &
878 : "When .TRUE., the exchange matrix is replaced by "// &
879 : "the ACE projector after the first full build.", &
880 : usage="ACTIVE .TRUE.", &
881 : default_l_val=.FALSE., &
882 35796 : lone_keyword_l_val=.TRUE.)
883 35796 : CALL section_add_keyword(section, keyword)
884 35796 : CALL keyword_release(keyword)
885 :
886 : ! --- REBUILD_FREQUENCY ---
887 : CALL keyword_create(keyword, __LOCATION__, &
888 : name="REBUILD_FREQUENCY", &
889 : description="Rebuild the ACE projectors W every N SCF steps. "// &
890 : "N=1 means rebuild every step (identical to full HFX, "// &
891 : "use for testing only). N=10-20 is typical for production. "// &
892 : "Projectors are always rebuilt when the structure changes.", &
893 : usage="REBUILD_FREQUENCY 20", &
894 35796 : default_i_val=20)
895 35796 : CALL section_add_keyword(section, keyword)
896 35796 : CALL keyword_release(keyword)
897 :
898 35796 : END SUBROUTINE create_hf_ace_section
899 :
900 : END MODULE input_cp2k_hfx
|