Octopus
xc_functional.F90
Go to the documentation of this file.
1!! Copyright (C) 2002-2006 M. Marques, A. Castro, A. Rubio, G. Bertsch
2!!
3!! This program is free software; you can redistribute it and/or modify
4!! it under the terms of the GNU General Public License as published by
5!! the Free Software Foundation; either version 2, or (at your option)
6!! any later version.
7!!
8!! This program is distributed in the hope that it will be useful,
9!! but WITHOUT ANY WARRANTY; without even the implied warranty of
10!! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11!! GNU General Public License for more details.
12!!
13!! You should have received a copy of the GNU General Public License
14!! along with this program; if not, write to the Free Software
15!! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16!! 02110-1301, USA.
17!!
18
19#include "global.h"
20
22 use debug_oct_m
23 use global_oct_m
27 use parser_oct_m
28 use pseudo_oct_m
29 use xc_f03_lib_m
30#ifdef HAVE_LIBXC_FUNCS
31 use xc_f03_funcs_m
32#endif
33
34 implicit none
35
36 ! Although the following file only contain comments, we include it here to make sure it exists.
37 ! Otherwise the code might compile, but not run properly, as the variables documentations
38 ! will be incomplete.
39#include "functionals_list.F90"
40
41 private
42 public :: &
50
51
54 integer, public, parameter :: &
55 XC_OEP_X = 901, & !< Exact exchange
56 xc_oep_x_slater = 902, &
57 xc_oep_x_fbe = 903, &
58 xc_ks_inversion = 904, &
59 xc_rdmft_xc_m = 905, &
60 xc_oep_x_fbe_sl = 906, &
61 xc_lda_c_fbe = 907, &
62 xc_lda_c_fbe_sl = 908, &
63 xc_vdw_c_vdwdf = 918, &
64 xc_vdw_c_vdwdf2 = 919, &
65 xc_vdw_c_vdwdfcx = 920, &
68 xc_mgga_x_nc_br = 923, &
69 xc_mgga_x_nc_br_1 = 924, &
70 xc_mgga_c_nc_cs = 925, &
72
75 integer, public, parameter :: &
76 XC_FAMILY_KS_INVERSION = 1024, &
77 xc_family_rdmft = 2048, &
78 xc_family_libvdwxc = 4096, &
79 xc_family_nc_lda = 8192, &
80 xc_family_nc_mgga = 16384
81
83 ! Components are public by default
84 integer :: family = xc_family_unknown
85 integer :: type = 0
86 integer :: id = 0
87
88 integer :: spin_channels = 0
89 integer :: flags = 0
90
91 logical, private :: from_libxc = .false.
92
93 type(xc_f03_func_t) :: conf
94 type(xc_f03_func_info_t), private :: info
95 type(libvdwxc_t) :: libvdwxc
96 end type xc_functional_t
97
98 integer, public, parameter :: LIBXC_C_INDEX = 1000
99
100contains
101
102 ! ---------------------------------------------------------
103 subroutine xc_functional_init(functl, namespace, id, ndim, nel, spin_channels)
104 type(xc_functional_t), intent(inout) :: functl
105 type(namespace_t), intent(in) :: namespace
106 integer, intent(in) :: id
107 integer, intent(in) :: ndim
108 real(real64), intent(in) :: nel
109 integer, intent(in) :: spin_channels
110
111 integer :: interact_1d
112 real(real64) :: alpha, parameters(2)
113
115
116 ! initialize structure
117 functl%id = id
118 functl%spin_channels = spin_channels
119
120 if (functl%id == 0) then
121 functl%family = xc_family_none
122 else
123 ! get the family of the functional
124 functl%family = xc_f03_family_from_id(functl%id)
125 ! this also ensures it is actually a functional defined by the linked version of libxc
126
127 if (functl%family == xc_family_unknown) then
128
129 select case (functl%id)
131 functl%family = xc_family_oep
132
133 case (xc_lda_c_fbe)
134 functl%family = xc_family_lda
135
136 case (xc_ks_inversion)
137 functl%family = xc_family_ks_inversion
138
140 functl%family = xc_family_libvdwxc
141 !functl%flags = functl%flags + XC_FLAGS_HAVE_VXC + XC_FLAGS_HAVE_EXC
142
143 case (xc_rdmft_xc_m)
144 functl%family = xc_family_rdmft
145
147 functl%family = xc_family_hyb_gga
148
150 functl%family = xc_family_nc_mgga
151
152 case default
153 call messages_input_error(namespace, 'XCFunctional', 'Unknown functional')
154
155 end select
156 end if
157 end if
158
159 if (functl%family == xc_family_oep) then
160 functl%type = xc_exchange
161 functl%flags = xc_flags_1d + xc_flags_2d + xc_flags_3d
162
163 else if (functl%family == xc_family_ks_inversion .or. functl%family == xc_family_rdmft) then
164 functl%type = xc_exchange_correlation
165 functl%flags = xc_flags_1d + xc_flags_2d + xc_flags_3d
166
167 else if (functl%family == xc_family_libvdwxc) then
168 call xc_f03_func_init(functl%conf, xc_lda_c_pw, spin_channels)
169 functl%info = xc_f03_func_get_info(functl%conf)
170 functl%type = xc_f03_func_info_get_kind(functl%info)
171 functl%flags = xc_f03_func_info_get_flags(functl%info)
172 ! Convert Octopus code for functional into corresponding libvdwxc code:
173 call libvdwxc_init(functl%libvdwxc, namespace, functl%id - xc_vdw_c_vdwdf + 1)
174
175 else if(functl%id == xc_lda_c_fbe) then
176 functl%type = xc_correlation
177 functl%flags = xc_flags_have_exc + xc_flags_have_vxc + xc_flags_3d
178
179 else if(functl%id == xc_lda_c_fbe_sl) then
180 functl%type = xc_correlation
181 functl%flags = xc_flags_have_exc + xc_flags_have_vxc + xc_flags_3d
182
183 else if (functl%id == xc_mgga_x_nc_br .or. functl%id == xc_mgga_x_nc_br_1 .or. functl%id == xc_mgga_x_nc_br_explicit) then
184 functl%type = xc_exchange
185 functl%flags = xc_flags_have_vxc + xc_flags_have_exc + xc_flags_3d
186
187 else if(functl%id == xc_mgga_c_nc_cs) then
188 functl%type = xc_correlation
189 functl%flags = xc_flags_have_vxc + xc_flags_have_exc + xc_flags_3d
190
191 else if (functl%family == xc_family_none) then
192 functl%type = -1
193 functl%flags = xc_flags_1d + xc_flags_2d + xc_flags_3d
194
195 else ! handled by libxc
196 ! initialize
197 functl%from_libxc = .true.
198
199 !For the two MVORB functionals, we initialize libxc with the non-MVORB functionals
200 select case (functl%id)
202 call xc_f03_func_init(functl%conf, xc_hyb_gga_xc_hse06, spin_channels)
203
205 call xc_f03_func_init(functl%conf, xc_hyb_gga_xc_pbeh, spin_channels)
206
207 case default
208 call xc_f03_func_init(functl%conf, functl%id, spin_channels)
209 end select
210 functl%info = xc_f03_func_get_info(functl%conf)
211 functl%type = xc_f03_func_info_get_kind(functl%info)
212 functl%flags = xc_f03_func_info_get_flags(functl%info)
213
214 ! FIXME: no need to say this for kernel
215 if (bitand(functl%flags, xc_flags_have_exc) == 0) then
216 message(1) = 'Specified functional does not have total energy available.'
217 message(2) = 'Corresponding component of energy will just be left as zero.'
218 call messages_warning(2, namespace=namespace)
219 end if
220
221 if (bitand(functl%flags, xc_flags_have_vxc) == 0) then
222 message(1) = 'Specified functional does not have XC potential available.'
223 message(2) = 'Cannot run calculations. Choose another XCFunctional.'
224 call messages_fatal(2, namespace=namespace)
225 end if
226 end if
227
228 ! Octopus-defined functionals need to provide the proper flags
229 if (functl%family /= xc_family_none) then
230 call xc_check_dimension(functl, ndim, namespace)
231 end if
232
233 ! Yukawa hybrids not supported yet
234 if (bitand(functl%flags, xc_flags_hyb_camy) /= 0) then
235 call messages_not_implemented("Yukawa-range separated hybrids", namespace=namespace)
236 end if
237
238 ! VV10 correlations not supported yet
239 if (bitand(functl%flags, xc_flags_vv10) /= 0) then
240 call messages_not_implemented("VV10 correlation functionals", namespace=namespace)
241 end if
242
243 ! FIXME: aren`t there other parameters that can or should be set?
244 ! special parameters that have to be configured
245 select case (functl%id)
246 ! FIXME: aren`t there other Xalpha functionals?
247 case (xc_lda_c_xalpha)
248
249 !%Variable Xalpha
250 !%Type float
251 !%Default 1.0
252 !%Section Hamiltonian::XC
253 !%Description
254 !% The parameter of the Slater X<math>\alpha</math> functional. Applies only for
255 !% <tt>XCFunctional = xc_lda_c_xalpha</tt>.
256 !%End
257 call parse_variable(namespace, 'Xalpha', m_one, parameters(1))
258
259 call xc_f03_func_set_ext_params(functl%conf, parameters(1))
260
261 ! FIXME: doesn`t this apply to other 1D functionals?
262 case (xc_lda_x_1d_soft, xc_lda_c_1d_csc)
263 !%Variable Interaction1D
264 !%Type integer
265 !%Default interaction_soft_coulomb
266 !%Section Hamiltonian::XC
267 !%Description
268 !% When running in 1D, one has to soften the Coulomb interaction. This softening
269 !% is not unique, and several possibilities exist in the literature.
270 !%Option interaction_exp_screened 0
271 !% Exponentially screened Coulomb interaction.
272 !% See, <i>e.g.</i>, M Casula, S Sorella, and G Senatore, <i>Phys. Rev. B</i> <b>74</b>, 245427 (2006).
273 !%Option interaction_soft_coulomb 1
274 !% Soft Coulomb interaction of the form <math>1/\sqrt{x^2 + \alpha^2}</math>.
275 !%End
276 call messages_obsolete_variable(namespace, 'SoftInteraction1D_alpha', 'Interaction1D')
277 call parse_variable(namespace, 'Interaction1D', option__interaction1d__interaction_soft_coulomb, interact_1d)
278
279 !%Variable Interaction1DScreening
280 !%Type float
281 !%Default 1.0
282 !%Section Hamiltonian::XC
283 !%Description
284 !% Defines the screening parameter <math>\alpha</math> of the softened Coulomb interaction
285 !% when running in 1D.
286 !%End
287 call messages_obsolete_variable(namespace, 'SoftInteraction1D_alpha', 'Interaction1DScreening')
288 call parse_variable(namespace, 'Interaction1DScreening', m_one, alpha)
289 parameters(1) = real(interact_1d, real64)
290 parameters(2) = alpha
291 call xc_f03_func_set_ext_params(functl%conf, parameters(1))
292
293 case (xc_gga_x_lb)
294 if (parse_is_defined(namespace, 'LB94_modified')) then
295 call messages_obsolete_variable(namespace, 'LB94_modified')
296 end if
297
298 if (parse_is_defined(namespace, 'LB94_threshold')) then
299 call messages_obsolete_variable(namespace, 'LB94_threshold')
300 end if
301 end select
302
303
304 ! For functionals that depend on the number of electrons, we set the number of electrons
305 ! This is currently the case of GGA_K_TFLW, LDA_X_2D_PRM, and LDA_X_RAE
306 if (xc_functional_is_not_size_consistent(functl, namespace)) then
307 assert(xc_f03_func_info_get_n_ext_params(functl%info) == 1)
308 parameters(1) = nel
309 call xc_f03_func_set_ext_params(functl%conf, parameters(1))
310 write(message(1), '(a,i1)') "Info: Setting the number of electrons for the functional for spin ", spin_channels
311 call messages_info(1, namespace=namespace)
312 end if
313
314 pop_sub(xc_functional_init)
315 end subroutine xc_functional_init
316
317
318 ! ---------------------------------------------------------
319 subroutine xc_functional_end(functl)
320 type(xc_functional_t), intent(inout) :: functl
321
322 push_sub(xc_functional_end)
323
324 if (functl%family /= xc_family_none .and. functl%family /= xc_family_oep .and. &
325 functl%family /= xc_family_ks_inversion .and. functl%id /= xc_lda_c_fbe &
326 .and. functl%family /= xc_family_nc_lda .and. functl%family /= xc_family_nc_mgga) then
327 call xc_f03_func_end(functl%conf)
328 end if
329
330 if (functl%family == xc_family_libvdwxc) then
331 call libvdwxc_end(functl%libvdwxc)
332 end if
333
334 pop_sub(xc_functional_end)
335 end subroutine xc_functional_end
336
337
338 ! ---------------------------------------------------------
340 subroutine xc_functional_write_info(functl, iunit, namespace)
341 type(xc_functional_t), intent(in) :: functl
342 integer, optional, intent(in) :: iunit
343 type(namespace_t), optional, intent(in) :: namespace
344
345 character(len=1024) :: reference
346 character(len=120) :: family
347 integer :: ii, ind, istart, iend
348
350
351 if (functl%family == xc_family_oep) then
352 ! this is handled separately
353
354 select case (functl%id)
355 case (xc_oep_x)
356 write(message(1), '(2x,a)') 'Exchange'
357 write(message(2), '(4x,a)') 'Exact exchange'
358 call messages_info(2, iunit=iunit, namespace=namespace)
359
360 case(xc_oep_x_slater)
361 write(message(1), '(2x,a)') 'Exchange'
362 write(message(2), '(4x,a)') 'Slater exchange'
363 call messages_info(2, iunit=iunit, namespace=namespace)
364
365 case (xc_oep_x_fbe)
366 write(message(1), '(2x,a)') 'Exchange'
367 write(message(2), '(4x,a)') 'Force-based local exchange'
368 write(message(3), '(4x,a)') '[1] Tancogne-Dejean et al., J. Chem. Phys. 160, 024103 (2024)'
369 call messages_info(3, iunit=iunit, namespace=namespace)
370
371 case (xc_oep_x_fbe_sl)
372 write(message(1), '(2x,a)') 'Exchange'
373 write(message(2), '(4x,a)') 'Force-based local exchange - Sturm-Liouville'
374 call messages_info(2, iunit=iunit, namespace=namespace)
375
376 case (xc_lda_c_fbe_sl)
377 write(message(1), '(2x,a)') 'Correlation'
378 write(message(2), '(4x,a)') 'Force-based local-density correlation - Sturm-Liouville'
379 call messages_info(2, iunit=iunit, namespace=namespace)
380
381 case default
382 assert(.false.)
383 end select
384
385 else if ( functl%family == xc_family_rdmft) then
386 select case (functl%id)
387 case (xc_rdmft_xc_m)
388 write(message(1), '(2x,a)') 'RDMFT'
389 write(message(2), '(4x,a)') 'Mueller functional'
390 call messages_info(2, iunit=iunit, namespace=namespace)
391 end select
392
393 else if (functl%family == xc_family_ks_inversion) then
394 ! this is handled separately
395 select case (functl%id)
396 case (xc_ks_inversion)
397 write(message(1), '(2x,a)') 'Exchange-Correlation:'
398 write(message(2), '(4x,a)') ' KS Inversion'
399 call messages_info(2, iunit=iunit, namespace=namespace)
400 end select
401
402 else if (functl%family == xc_family_libvdwxc) then
403 call libvdwxc_write_info(functl%libvdwxc, iunit=iunit)
404
405 else if (functl%id == xc_mgga_x_nc_br) then
406 write(message(1), '(2x,a)') 'Exchange'
407 write(message(2), '(4x,a)') 'Noncollinear Becke-Roussel (MGGA)'
408 write(message(3), '(4x,a)') '[1] N. Tancogne-Dejean, A. Rubio, and C. A. Ullrich, Phys. Rev. B 107, 165111 (2023)'
409 call messages_info(3, iunit)
410
411 else if (functl%id == xc_mgga_x_nc_br_1) then
412 write(message(1), '(2x,a)') 'Exchange'
413 write(message(2), '(4x,a)') 'Noncollinear Becke-Roussel, gamma = 1.0 (MGGA)'
414 write(message(3), '(4x,a)') '[1] N. Tancogne-Dejean, A. Rubio, and C. A. Ullrich, Phys. Rev. B 107, 165111 (2023)'
415 call messages_info(3, iunit)
416
417 else if (functl%id == xc_mgga_x_nc_br_explicit) then
418 write(message(1), '(2x,a)') 'Exchange'
419 write(message(2), '(4x,a)') 'Noncollinear Becke-Roussel (MGGA) with explicit inversion of x(y)'
420 write(message(3), '(4x,a)') '[1] N. Tancogne-Dejean, A. Rubio, and C. A. Ullrich, Phys. Rev. B 107, 165111 (2023)'
421 write(message(4), '(4x,a)') '[2] E. Proynov et al., Chemical Physics Letters 455, 103 (2008)'
422 call messages_info(4, iunit)
423
424 else if (functl%id == xc_mgga_c_nc_cs) then
425 write(message(1), '(2x,a)') 'Correlation'
426 write(message(2), '(4x,a)') 'Noncollinear Colle-Salvetti (MGGA)'
427 write(message(3), '(4x,a)') '[1] N. Tancogne-Dejean, A. Rubio, and C. A. Ullrich, Phys. Rev. B 107, 165111 (2023)'
428 call messages_info(3, iunit)
429
430 else if(functl%id == xc_lda_c_fbe) then
431 write(message(1), '(2x,a)') 'Correlation'
432 write(message(2), '(4x,a)') 'Force-based LDA correlation'
433 write(message(3), '(4x,a)') '[1] N. Tancogne-Dejean, M. Penz, M. Ruggenthaler, A. Rubio, J. Phys. Chem. A 129, 3132 (2025)'
434 call messages_info(3, iunit=iunit, namespace=namespace)
435
436 else if (functl%family /= xc_family_none) then ! all the other families
437 select case (functl%type)
438 case (xc_exchange)
439 write(message(1), '(2x,a)') 'Exchange'
440 case (xc_correlation)
441 write(message(1), '(2x,a)') 'Correlation'
442 case (xc_exchange_correlation)
443 write(message(1), '(2x,a)') 'Exchange-correlation'
444 case (xc_kinetic)
445 call messages_not_implemented("kinetic-energy functionals", namespace=namespace)
446 case default
447 write(message(1), '(a,i6,a,i6)') "Unknown functional type ", functl%type, ' for functional ', functl%id
448 call messages_fatal(1, namespace=namespace)
449 end select
450
451 select case (functl%family)
452 case (xc_family_lda)
453 write(family,'(a)') "LDA"
454 case (xc_family_gga)
455 write(family,'(a)') "GGA"
456 case (xc_family_mgga)
457 write(family,'(a)') "MGGA"
458 case (xc_family_lca)
459 call messages_not_implemented("Support of LCA functional", namespace=namespace)
460 case (xc_family_hyb_lda)
461 write(family,'(a)') "Hybrid LDA"
462 case (xc_family_hyb_gga)
463 write(family,'(a)') "Hybrid GGA"
464 case (xc_family_hyb_mgga)
465 write(family,'(a)') "Hybrid MGGA"
466 end select
467 write(message(2), '(4x,4a)') trim(xc_f03_func_info_get_name(functl%info)), ' (', trim(family), ')'
468 call messages_info(2, iunit=iunit, namespace=namespace)
469
470 ii = 0
471 do while(ii >= 0 .and. ii < 256)
472 ! Preventing End of record error as message(1) has length of 256, and libxc returns 1024 characters
473 ind = ii + 1
474 write(reference, '(a)') trim(xc_f03_func_reference_get_ref(xc_f03_func_info_get_references(functl%info, ii)))
475 ! Some references are in fact notes, and references are void in this case
476 if (len_trim(reference) == 0) cycle
477 istart = 1
478 iend = len(message(1))-10
479 write(message(1), '(4x,a,i1,2a)') '[', ind, '] ', trim(reference(istart:iend))
480 call messages_info(1, iunit=iunit, namespace=namespace)
481 do while (iend < len_trim(reference))
482 istart = iend
483 iend = min(istart + len(message(1))-10, len_trim(reference))
484 write(message(1), '(7x,a)') trim(reference(istart:iend))
485 call messages_info(1, iunit=iunit, namespace=namespace)
486 end do
487 end do
488 end if
489
491 end subroutine xc_functional_write_info
492
493
495 integer function xc_get_default_functional(dim, pseudo_x_functional, pseudo_c_functional) result(default)
496 integer, intent(in) :: dim
497 integer, intent(in) :: pseudo_x_functional, pseudo_c_functional
498
500
501 default = 0
502
503 if (pseudo_x_functional /= pseudo_exchange_any) then
504 default = pseudo_x_functional
505 else
506 select case (dim)
507 case (3)
508 default = xc_lda_x
509 case (2)
510 default = xc_lda_x_2d
511 case (1)
512 default = xc_lda_x_1d_soft
513 end select
514 end if
515
516 assert(default >= 0)
517
518 if (pseudo_c_functional /= pseudo_correlation_any) then
519 default = default + libxc_c_index*pseudo_c_functional
520 else
521 select case (dim)
522 case (3)
523 default = default + libxc_c_index * xc_lda_c_pz_mod
524 case (2)
525 default = default + libxc_c_index * xc_lda_c_2d_amgb
526 case (1)
527 default = default + libxc_c_index * xc_lda_c_1d_csc
528 end select
529 end if
530
531 assert(default >= 0)
532
534 end function xc_get_default_functional
535
537 subroutine xc_check_dimension(functl, ndim, namespace)
538 type(xc_functional_t), intent(in) :: functl
539 integer, intent(in) :: ndim
540 type(namespace_t), intent(in) :: namespace
541
542 logical :: ok
543
544 push_sub(xc_check_dimension)
545
546 ! Check that the functional is used for the correct space dimension
547 ok = bitand(functl%flags, xc_flags_1d) /= 0
548 if (ndim == 1 .and. (.not. ok)) then
549 message(1) = 'Cannot use the specified functionals in 1D.'
550 call messages_fatal(1, namespace=namespace)
551 end if
552
553 ok = bitand(functl%flags, xc_flags_2d) /= 0
554 if (ndim == 2 .and. (.not. ok)) then
555 message(1) = 'Cannot use the specified functionals in 2D.'
556 call messages_fatal(1, namespace=namespace)
557 end if
558
559 ok = bitand(functl%flags, xc_flags_3d) /= 0
560 if (ndim == 3 .and. (.not. ok)) then
561 message(1) = 'Cannot use the specified functionals in 3D.'
562 call messages_fatal(1, namespace=namespace)
563 end if
564
565 pop_sub(xc_check_dimension)
566 end subroutine xc_check_dimension
567
569 logical function xc_functional_is_not_size_consistent(functl, namespace)
570 type(xc_functional_t), intent(in) :: functl
571 type(namespace_t), intent(in) :: namespace
572
573 integer :: n_ext_params, ip
574 character(len=128) :: ext_params_name
575
577 if (.not. functl%from_libxc) return
578
580
581 ! External parameters
582 n_ext_params = xc_f03_func_info_get_n_ext_params(functl%info)
583 do ip = 0, n_ext_params-1
584 ext_params_name = xc_f03_func_info_get_ext_params_name(functl%info, ip)
585 ! Internal parameters starts with '_'
586 if (ext_params_name(1:1) == '_') cycle
587 if (trim(xc_f03_func_info_get_ext_params_description(functl%info, ip)) == 'Number of electrons') then
589 end if
590 end do
591
592 ! We only support size inconsistent functionals with a single parameter at the moment
593 if (xc_functional_is_not_size_consistent .and. n_ext_params > 1) then
594 message(1) = 'The selected functional is currently not supported.'
595 call messages_fatal(1, namespace=namespace)
596 end if
597
600
601 logical pure function xc_functional_is_energy_functional(functl)
602 type(xc_functional_t), intent(in) :: functl
603
604 xc_functional_is_energy_functional = bitand(functl%flags, xc_flags_have_exc) /= 0
606
607end module xc_functional_oct_m
608
609!! Local Variables:
610!! mode: f90
611!! coding: utf-8
612!! End:
real(real64), parameter, public m_one
Definition: global.F90:189
subroutine, public libvdwxc_end(this)
Definition: libvdwxc.F90:481
subroutine, public libvdwxc_init(libvdwxc, namespace, functional)
Definition: libvdwxc.F90:161
subroutine, public libvdwxc_write_info(this, iunit, namespace)
Definition: libvdwxc.F90:207
subroutine, public messages_not_implemented(feature, namespace)
Definition: messages.F90:1114
subroutine, public messages_warning(no_lines, all_nodes, namespace)
Definition: messages.F90:538
subroutine, public messages_obsolete_variable(namespace, name, rep)
Definition: messages.F90:1046
character(len=256), dimension(max_lines), public message
to be output by fatal, warning
Definition: messages.F90:161
subroutine, public messages_fatal(no_lines, only_root_writes, namespace)
Definition: messages.F90:415
subroutine, public messages_input_error(namespace, var, details, row, column)
Definition: messages.F90:714
subroutine, public messages_info(no_lines, iunit, debug_only, stress, all_nodes, namespace)
Definition: messages.F90:617
logical function, public parse_is_defined(namespace, name)
Definition: parser.F90:502
integer, parameter, public pseudo_correlation_any
Definition: pseudo.F90:192
integer, parameter, public pseudo_exchange_any
Definition: pseudo.F90:188
integer, parameter, public xc_ks_inversion
inversion of Kohn-Sham potential
integer, parameter, public xc_vdw_c_vdwdf
vdw-df correlation from libvdwxc
integer, parameter, public xc_family_rdmft
subroutine, public xc_functional_write_info(functl, iunit, namespace)
Write functional information.
integer function, public xc_get_default_functional(dim, pseudo_x_functional, pseudo_c_functional)
Returns the default functional given the one parsed from the pseudopotentials and the space dimension...
integer, parameter, public xc_mgga_c_nc_cs
Noncollinear version of the Colle-Salvetti correlation functional.
integer, parameter, public xc_hyb_gga_xc_mvorb_pbeh
Density-based mixing parameter of PBE0.
integer, parameter, public xc_mgga_x_nc_br
Noncollinear version of the Becke-Roussel functional.
integer, parameter, public xc_vdw_c_vdwdfcx
vdw-df-cx correlation from libvdwxc
subroutine, public xc_functional_init(functl, namespace, id, ndim, nel, spin_channels)
integer, parameter, public xc_lda_c_fbe
LDA correlation based ib the force-balance equation.
integer, parameter, public xc_family_nc_mgga
integer, parameter, public xc_vdw_c_vdwdf2
vdw-df2 correlation from libvdwxc
subroutine xc_check_dimension(functl, ndim, namespace)
Check that the selected functional is compatible with the space dimension.
integer, parameter, public xc_family_libvdwxc
integer, parameter, public xc_hyb_gga_xc_mvorb_hse06
Density-based mixing parameter of HSE06.
subroutine, public xc_functional_end(functl)
integer, parameter, public xc_lda_c_fbe_sl
LDA correlation based ib the force-balance equation - Sturm-Liouville version.
integer, parameter, public xc_rdmft_xc_m
RDMFT Mueller functional.
integer, parameter, public xc_mgga_x_nc_br_1
Noncollinear version of the Becke-Roussel functional, gamma=1.
logical function, public xc_functional_is_not_size_consistent(functl, namespace)
Does the functional depend on the number of electrons or not.
integer, parameter, public xc_mgga_x_nc_br_explicit
Noncollinear version of the Becke-Roussel functionalwith an explicit inversion of x(y),...
integer, parameter, public xc_family_nc_lda
integer, parameter, public xc_oep_x_fbe_sl
Exchange approximation based on the force balance equation - Sturn-Liouville version.
integer, parameter, public xc_oep_x_fbe
Exchange approximation based on the force balance equation.
logical pure function, public xc_functional_is_energy_functional(functl)
integer, parameter, public xc_oep_x_slater
Slater approximation to the exact exchange.
int true(void)