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_half_hartree = 917, &
64 xc_vdw_c_vdwdf = 918, &
65 xc_vdw_c_vdwdf2 = 919, &
66 xc_vdw_c_vdwdfcx = 920, &
69 xc_mgga_x_nc_br = 923, &
70 xc_mgga_x_nc_br_1 = 924, &
71 xc_mgga_c_nc_cs = 925, &
73
76 integer, public, parameter :: &
77 XC_FAMILY_KS_INVERSION = 1024, &
78 xc_family_rdmft = 2048, &
79 xc_family_libvdwxc = 4096, &
80 xc_family_nc_lda = 8192, &
81 xc_family_nc_mgga = 16384
82
84 ! Components are public by default
85 integer :: family = xc_family_unknown
86 integer :: type = 0
87 integer :: id = 0
88
89 integer :: spin_channels = 0
90 integer :: flags = 0
91
92 logical, private :: from_libxc = .false.
93
94 type(xc_f03_func_t) :: conf
95 type(xc_f03_func_info_t), private :: info
96 type(libvdwxc_t) :: libvdwxc
97 end type xc_functional_t
98
99 integer, public, parameter :: LIBXC_C_INDEX = 1000
100
101contains
102
103 ! ---------------------------------------------------------
104 subroutine xc_functional_init(functl, namespace, id, ndim, nel, spin_channels)
105 type(xc_functional_t), intent(inout) :: functl
106 type(namespace_t), intent(in) :: namespace
107 integer, intent(in) :: id
108 integer, intent(in) :: ndim
109 real(real64), intent(in) :: nel
110 integer, intent(in) :: spin_channels
111
112 integer :: interact_1d
113 real(real64) :: alpha, parameters(2)
115 push_sub(xc_functional_init)
116
117 ! initialize structure
118 functl%id = id
119 functl%spin_channels = spin_channels
120
121 if (functl%id == 0) then
122 functl%family = xc_family_none
123 else
124 ! get the family of the functional
125 functl%family = xc_f03_family_from_id(functl%id)
126 ! this also ensures it is actually a functional defined by the linked version of libxc
127
128 if (functl%family == xc_family_unknown) then
129
130 select case (functl%id)
132 functl%family = xc_family_oep
133
134 case (xc_ks_inversion)
135 functl%family = xc_family_ks_inversion
136
137 case (xc_half_hartree)
138 call messages_experimental("half-Hartree exchange", namespace=namespace)
139 functl%family = xc_family_lda ! XXX not really
140
142 functl%family = xc_family_libvdwxc
143 !functl%flags = functl%flags + XC_FLAGS_HAVE_VXC + XC_FLAGS_HAVE_EXC
144
145 case (xc_rdmft_xc_m)
146 functl%family = xc_family_rdmft
147
149 functl%family = xc_family_hyb_gga
150
152 functl%family = xc_family_nc_mgga
153
154 case default
155 call messages_input_error(namespace, 'XCFunctional', 'Unknown functional')
156
157 end select
158 end if
159 end if
160
161 if (functl%family == xc_family_oep) then
162 functl%type = xc_exchange
163 functl%flags = xc_flags_1d + xc_flags_2d + xc_flags_3d
164
165 else if (functl%family == xc_family_ks_inversion .or. functl%family == xc_family_rdmft) then
166 functl%type = xc_exchange_correlation
167 functl%flags = xc_flags_1d + xc_flags_2d + xc_flags_3d
168
169 else if (functl%family == xc_family_libvdwxc) then
170 call xc_f03_func_init(functl%conf, xc_lda_c_pw, spin_channels)
171 functl%info = xc_f03_func_get_info(functl%conf)
172 functl%type = xc_f03_func_info_get_kind(functl%info)
173 functl%flags = xc_f03_func_info_get_flags(functl%info)
174 ! Convert Octopus code for functional into corresponding libvdwxc code:
175 call libvdwxc_init(functl%libvdwxc, namespace, functl%id - xc_vdw_c_vdwdf + 1)
176
177 else if (functl%id == xc_half_hartree) then
178 functl%type = xc_exchange_correlation
179 functl%flags = xc_flags_1d + xc_flags_2d + xc_flags_3d
180
181 else if(functl%id == xc_lda_c_fbe) then
182 functl%family = xc_family_lda
183 functl%type = xc_correlation
184 functl%flags = xc_flags_have_exc + xc_flags_have_vxc + xc_flags_3d
185
186 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
187 functl%type = xc_exchange
188 functl%flags = xc_flags_have_vxc + xc_flags_have_exc + xc_flags_3d
189
190 else if(functl%id == xc_mgga_c_nc_cs) then
191 functl%type = xc_correlation
192 functl%flags = xc_flags_have_vxc + xc_flags_have_exc + xc_flags_3d
193
194 else if (functl%family == xc_family_none) then
195 functl%type = -1
196 functl%flags = xc_flags_1d + xc_flags_2d + xc_flags_3d
197
198 else ! handled by libxc
199 ! initialize
200 functl%from_libxc = .true.
201
202 !For the two MVORB functionals, we initialize libxc with the non-MVORB functionals
203 select case (functl%id)
205 call xc_f03_func_init(functl%conf, xc_hyb_gga_xc_hse06, spin_channels)
206
208 call xc_f03_func_init(functl%conf, xc_hyb_gga_xc_pbeh, spin_channels)
209
210 case default
211 call xc_f03_func_init(functl%conf, functl%id, spin_channels)
212 end select
213 functl%info = xc_f03_func_get_info(functl%conf)
214 functl%type = xc_f03_func_info_get_kind(functl%info)
215 functl%flags = xc_f03_func_info_get_flags(functl%info)
216
217 ! FIXME: no need to say this for kernel
218 if (bitand(functl%flags, xc_flags_have_exc) == 0) then
219 message(1) = 'Specified functional does not have total energy available.'
220 message(2) = 'Corresponding component of energy will just be left as zero.'
221 call messages_warning(2, namespace=namespace)
222 end if
223
224 if (bitand(functl%flags, xc_flags_have_vxc) == 0) then
225 message(1) = 'Specified functional does not have XC potential available.'
226 message(2) = 'Cannot run calculations. Choose another XCFunctional.'
227 call messages_fatal(2, namespace=namespace)
228 end if
229 end if
230
231 ! Octopus-defined functionals need to provide the proper flags
232 if (functl%family /= xc_family_none) then
233 call xc_check_dimension(functl, ndim, namespace)
234 end if
235
236 ! Yukawa hybrids not supported yet
237 if (bitand(functl%flags, xc_flags_hyb_camy) /= 0) then
238 call messages_not_implemented("Yukawa-range separated hybrids", namespace=namespace)
239 end if
240
241 ! VV10 correlations not supported yet
242 if (bitand(functl%flags, xc_flags_vv10) /= 0) then
243 call messages_not_implemented("VV10 correlation functionals", namespace=namespace)
244 end if
245
246 ! FIXME: aren`t there other parameters that can or should be set?
247 ! special parameters that have to be configured
248 select case (functl%id)
249 ! FIXME: aren`t there other Xalpha functionals?
250 case (xc_lda_c_xalpha)
251
252 !%Variable Xalpha
253 !%Type float
254 !%Default 1.0
255 !%Section Hamiltonian::XC
256 !%Description
257 !% The parameter of the Slater X<math>\alpha</math> functional. Applies only for
258 !% <tt>XCFunctional = xc_lda_c_xalpha</tt>.
259 !%End
260 call parse_variable(namespace, 'Xalpha', m_one, parameters(1))
261
262 call xc_f03_func_set_ext_params(functl%conf, parameters(1))
263
264 ! FIXME: doesn`t this apply to other 1D functionals?
265 case (xc_lda_x_1d_soft, xc_lda_c_1d_csc)
266 !%Variable Interaction1D
267 !%Type integer
268 !%Default interaction_soft_coulomb
269 !%Section Hamiltonian::XC
270 !%Description
271 !% When running in 1D, one has to soften the Coulomb interaction. This softening
272 !% is not unique, and several possibilities exist in the literature.
273 !%Option interaction_exp_screened 0
274 !% Exponentially screened Coulomb interaction.
275 !% See, <i>e.g.</i>, M Casula, S Sorella, and G Senatore, <i>Phys. Rev. B</i> <b>74</b>, 245427 (2006).
276 !%Option interaction_soft_coulomb 1
277 !% Soft Coulomb interaction of the form <math>1/\sqrt{x^2 + \alpha^2}</math>.
278 !%End
279 call messages_obsolete_variable(namespace, 'SoftInteraction1D_alpha', 'Interaction1D')
280 call parse_variable(namespace, 'Interaction1D', option__interaction1d__interaction_soft_coulomb, interact_1d)
281
282 !%Variable Interaction1DScreening
283 !%Type float
284 !%Default 1.0
285 !%Section Hamiltonian::XC
286 !%Description
287 !% Defines the screening parameter <math>\alpha</math> of the softened Coulomb interaction
288 !% when running in 1D.
289 !%End
290 call messages_obsolete_variable(namespace, 'SoftInteraction1D_alpha', 'Interaction1DScreening')
291 call parse_variable(namespace, 'Interaction1DScreening', m_one, alpha)
292 parameters(1) = real(interact_1d, real64)
293 parameters(2) = alpha
294 call xc_f03_func_set_ext_params(functl%conf, parameters(1))
295
296 case (xc_gga_x_lb)
297 if (parse_is_defined(namespace, 'LB94_modified')) then
298 call messages_obsolete_variable(namespace, 'LB94_modified')
299 end if
300
301 if (parse_is_defined(namespace, 'LB94_threshold')) then
302 call messages_obsolete_variable(namespace, 'LB94_threshold')
303 end if
304 end select
305
306
307 ! For functionals that depend on the number of electrons, we set the number of electrons
308 ! This is currently the case of GGA_K_TFLW, LDA_X_2D_PRM, and LDA_X_RAE
309 if (xc_functional_is_not_size_consistent(functl, namespace)) then
310 assert(xc_f03_func_info_get_n_ext_params(functl%info) == 1)
311 parameters(1) = nel
312 call xc_f03_func_set_ext_params(functl%conf, parameters(1))
313 write(message(1), '(a,i1)') "Info: Setting the number of electrons for the functional for spin ", spin_channels
314 call messages_info(1, namespace=namespace)
315 end if
316
317 pop_sub(xc_functional_init)
318 end subroutine xc_functional_init
319
320
321 ! ---------------------------------------------------------
322 subroutine xc_functional_end(functl)
323 type(xc_functional_t), intent(inout) :: functl
324
325 push_sub(xc_functional_end)
326
327 if (functl%family /= xc_family_none .and. functl%family /= xc_family_oep .and. &
328 functl%family /= xc_family_ks_inversion .and. functl%id /= xc_half_hartree &
329 .and. functl%id /= xc_lda_c_fbe &
330 .and. functl%family /= xc_family_nc_lda .and. functl%family /= xc_family_nc_mgga) then
331 call xc_f03_func_end(functl%conf)
332 end if
333
334 if (functl%family == xc_family_libvdwxc) then
335 call libvdwxc_end(functl%libvdwxc)
336 end if
337
338 pop_sub(xc_functional_end)
339 end subroutine xc_functional_end
340
341
342 ! ---------------------------------------------------------
344 subroutine xc_functional_write_info(functl, iunit, namespace)
345 type(xc_functional_t), intent(in) :: functl
346 integer, optional, intent(in) :: iunit
347 type(namespace_t), optional, intent(in) :: namespace
348
349 character(len=1024) :: reference
350 character(len=120) :: family
351 integer :: ii, ind, istart, iend
352
354
355 if (functl%family == xc_family_oep) then
356 ! this is handled separately
357
358 select case (functl%id)
359 case (xc_oep_x)
360 write(message(1), '(2x,a)') 'Exchange'
361 write(message(2), '(4x,a)') 'Exact exchange'
362 call messages_info(2, iunit=iunit, namespace=namespace)
363
364 case(xc_oep_x_slater)
365 write(message(1), '(2x,a)') 'Exchange'
366 write(message(2), '(4x,a)') 'Slater exchange'
367 call messages_info(2, iunit=iunit, namespace=namespace)
368
369 case (xc_oep_x_fbe)
370 write(message(1), '(2x,a)') 'Exchange'
371 write(message(2), '(4x,a)') 'Force-based local exchange'
372 write(message(3), '(4x,a)') '[1] Tancogne-Dejean et al., J. Chem. Phys. 160, 024103 (2024)'
373 call messages_info(3, iunit=iunit, namespace=namespace)
374
375 case (xc_oep_x_fbe_sl)
376 write(message(1), '(2x,a)') 'Exchange'
377 write(message(2), '(4x,a)') 'Force-based local exchange - Sturm-Liouville'
378 call messages_info(2, iunit=iunit, namespace=namespace)
379
380 case (xc_lda_c_fbe_sl)
381 write(message(1), '(2x,a)') 'Correlation'
382 write(message(2), '(4x,a)') 'Force-based local-density correlation - Sturm-Liouville'
383 call messages_info(2, iunit=iunit, namespace=namespace)
384
385 case default
386 assert(.false.)
387 end select
388
389 else if ( functl%family == xc_family_rdmft) then
390 select case (functl%id)
391 case (xc_rdmft_xc_m)
392 write(message(1), '(2x,a)') 'RDMFT'
393 write(message(2), '(4x,a)') 'Mueller functional'
394 call messages_info(2, iunit=iunit, namespace=namespace)
395 end select
396
397 else if (functl%family == xc_family_ks_inversion) then
398 ! this is handled separately
399 select case (functl%id)
400 case (xc_ks_inversion)
401 write(message(1), '(2x,a)') 'Exchange-Correlation:'
402 write(message(2), '(4x,a)') ' KS Inversion'
403 call messages_info(2, iunit=iunit, namespace=namespace)
404 end select
405
406 else if (functl%family == xc_family_libvdwxc) then
407 call libvdwxc_write_info(functl%libvdwxc, iunit=iunit)
408
409 else if (functl%id == xc_mgga_x_nc_br) then
410 write(message(1), '(2x,a)') 'Exchange'
411 write(message(2), '(4x,a)') 'Noncollinear Becke-Roussel (MGGA)'
412 write(message(3), '(4x,a)') '[1] N. Tancogne-Dejean, A. Rubio, and C. A. Ullrich, Phys. Rev. B 107, 165111 (2023)'
413 call messages_info(3, iunit)
414
415 else if (functl%id == xc_mgga_x_nc_br_1) then
416 write(message(1), '(2x,a)') 'Exchange'
417 write(message(2), '(4x,a)') 'Noncollinear Becke-Roussel, gamma = 1.0 (MGGA)'
418 write(message(3), '(4x,a)') '[1] N. Tancogne-Dejean, A. Rubio, and C. A. Ullrich, Phys. Rev. B 107, 165111 (2023)'
419 call messages_info(3, iunit)
420
421 else if (functl%id == xc_mgga_x_nc_br_explicit) then
422 write(message(1), '(2x,a)') 'Exchange'
423 write(message(2), '(4x,a)') 'Noncollinear Becke-Roussel (MGGA) with explicit inversion of x(y)'
424 write(message(3), '(4x,a)') '[1] N. Tancogne-Dejean, A. Rubio, and C. A. Ullrich, Phys. Rev. B 107, 165111 (2023)'
425 write(message(4), '(4x,a)') '[2] E. Proynov et al., Chemical Physics Letters 455, 103 (2008)'
426 call messages_info(4, iunit)
427
428 else if (functl%id == xc_mgga_c_nc_cs) then
429 write(message(1), '(2x,a)') 'Correlation'
430 write(message(2), '(4x,a)') 'Noncollinear Colle-Salvetti (MGGA)'
431 write(message(3), '(4x,a)') '[1] N. Tancogne-Dejean, A. Rubio, and C. A. Ullrich, Phys. Rev. B 107, 165111 (2023)'
432 call messages_info(3, iunit)
433
434
435 else if (functl%id == xc_half_hartree) then
436 write(message(1), '(2x,a)') 'Exchange-Correlation:'
437 write(message(2), '(4x,a)') 'Half-Hartree two-electron exchange'
438 call messages_info(2, iunit=iunit, namespace=namespace)
439
440 else if(functl%id == xc_lda_c_fbe) then
441 write(message(1), '(2x,a)') 'Correlation'
442 write(message(2), '(4x,a)') 'Force-based LDA correlation'
443 write(message(3), '(4x,a)') '[1] N. Tancogne-Dejean, M. Penz, M. Ruggenthaler, A. Rubio, J. Phys. Chem. A 129, 3132 (2025)'
444 call messages_info(3, iunit=iunit, namespace=namespace)
445
446 else if (functl%family /= xc_family_none) then ! all the other families
447 select case (functl%type)
448 case (xc_exchange)
449 write(message(1), '(2x,a)') 'Exchange'
450 case (xc_correlation)
451 write(message(1), '(2x,a)') 'Correlation'
452 case (xc_exchange_correlation)
453 write(message(1), '(2x,a)') 'Exchange-correlation'
454 case (xc_kinetic)
455 call messages_not_implemented("kinetic-energy functionals", namespace=namespace)
456 case default
457 write(message(1), '(a,i6,a,i6)') "Unknown functional type ", functl%type, ' for functional ', functl%id
458 call messages_fatal(1, namespace=namespace)
459 end select
460
461 select case (functl%family)
462 case (xc_family_lda)
463 write(family,'(a)') "LDA"
464 case (xc_family_gga)
465 write(family,'(a)') "GGA"
466 case (xc_family_mgga)
467 write(family,'(a)') "MGGA"
468 case (xc_family_lca)
469 call messages_not_implemented("Support of LCA functional", namespace=namespace)
470 case (xc_family_hyb_lda)
471 write(family,'(a)') "Hybrid LDA"
472 case (xc_family_hyb_gga)
473 write(family,'(a)') "Hybrid GGA"
474 case (xc_family_hyb_mgga)
475 write(family,'(a)') "Hybrid MGGA"
476 end select
477 write(message(2), '(4x,4a)') trim(xc_f03_func_info_get_name(functl%info)), ' (', trim(family), ')'
478 call messages_info(2, iunit=iunit, namespace=namespace)
479
480 ii = 0
481 do while(ii >= 0)
482 ! Preventing End of record error as message(1) has length of 256, and libxc returns 1024 characters
483 ind = ii + 1
484 write(reference, '(a)') trim(xc_f03_func_reference_get_ref(xc_f03_func_info_get_references(functl%info, ii)))
485 ! Some references are in fact notes, and references are void in this case
486 if (len_trim(reference) == 0) cycle
487 istart = 1
488 iend = len(message(1))-10
489 write(message(1), '(4x,a,i1,2a)') '[', ind, '] ', trim(reference(istart:iend))
490 call messages_info(1, iunit=iunit, namespace=namespace)
491 do while (iend < len_trim(reference))
492 istart = iend
493 iend = min(istart + len(message(1))-10, len_trim(reference))
494 write(message(1), '(7x,a)') trim(reference(istart:iend))
495 call messages_info(1, iunit=iunit, namespace=namespace)
496 end do
497 end do
498 end if
499
501 end subroutine xc_functional_write_info
502
503
505 integer function xc_get_default_functional(dim, pseudo_x_functional, pseudo_c_functional) result(default)
506 integer, intent(in) :: dim
507 integer, intent(in) :: pseudo_x_functional, pseudo_c_functional
508
510
511 default = 0
512
513 if (pseudo_x_functional /= pseudo_exchange_any) then
514 default = pseudo_x_functional
515 else
516 select case (dim)
517 case (3)
518 default = xc_lda_x
519 case (2)
520 default = xc_lda_x_2d
521 case (1)
522 default = xc_lda_x_1d_soft
523 end select
524 end if
525
526 assert(default >= 0)
527
528 if (pseudo_c_functional /= pseudo_correlation_any) then
529 default = default + libxc_c_index*pseudo_c_functional
530 else
531 select case (dim)
532 case (3)
533 default = default + libxc_c_index * xc_lda_c_pz_mod
534 case (2)
535 default = default + libxc_c_index * xc_lda_c_2d_amgb
536 case (1)
537 default = default + libxc_c_index * xc_lda_c_1d_csc
538 end select
539 end if
540
541 assert(default >= 0)
542
544 end function xc_get_default_functional
545
547 subroutine xc_check_dimension(functl, ndim, namespace)
548 type(xc_functional_t), intent(in) :: functl
549 integer, intent(in) :: ndim
550 type(namespace_t), intent(in) :: namespace
551
552 logical :: ok
553
554 push_sub(xc_check_dimension)
555
556 ! Check that the functional is used for the correct space dimension
557 ok = bitand(functl%flags, xc_flags_1d) /= 0
558 if (ndim == 1 .and. (.not. ok)) then
559 message(1) = 'Cannot use the specified functionals in 1D.'
560 call messages_fatal(1, namespace=namespace)
561 end if
562
563 ok = bitand(functl%flags, xc_flags_2d) /= 0
564 if (ndim == 2 .and. (.not. ok)) then
565 message(1) = 'Cannot use the specified functionals in 2D.'
566 call messages_fatal(1, namespace=namespace)
567 end if
568
569 ok = bitand(functl%flags, xc_flags_3d) /= 0
570 if (ndim == 3 .and. (.not. ok)) then
571 message(1) = 'Cannot use the specified functionals in 3D.'
572 call messages_fatal(1, namespace=namespace)
573 end if
574
575 pop_sub(xc_check_dimension)
576 end subroutine xc_check_dimension
577
579 logical function xc_functional_is_not_size_consistent(functl, namespace)
580 type(xc_functional_t), intent(in) :: functl
581 type(namespace_t), intent(in) :: namespace
582
583 integer :: n_ext_params, ip
584 character(len=128) :: ext_params_name
585
587 if (.not. functl%from_libxc) return
588
590
591 ! External parameters
592 n_ext_params = xc_f03_func_info_get_n_ext_params(functl%info)
593 do ip = 0, n_ext_params-1
594 ext_params_name = xc_f03_func_info_get_ext_params_name(functl%info, ip)
595 ! Internal parameters starts with '_'
596 if (ext_params_name(1:1) == '_') cycle
597 if (trim(xc_f03_func_info_get_ext_params_description(functl%info, ip)) == 'Number of electrons') then
599 end if
600 end do
601
602 ! We only support size inconsistent functionals with a single parameter at the moment
603 if (xc_functional_is_not_size_consistent .and. n_ext_params > 1) then
604 message(1) = 'The selected functional is currently not supported.'
605 call messages_fatal(1, namespace=namespace)
606 end if
607
610
611 logical pure function xc_functional_is_energy_functional(functl)
612 type(xc_functional_t), intent(in) :: functl
613
614 xc_functional_is_energy_functional = bitand(functl%flags, xc_flags_have_exc) /= 0
616
617end module xc_functional_oct_m
618
619!! Local Variables:
620!! mode: f90
621!! coding: utf-8
622!! 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:1113
subroutine, public messages_warning(no_lines, all_nodes, namespace)
Definition: messages.F90:537
subroutine, public messages_obsolete_variable(namespace, name, rep)
Definition: messages.F90:1045
character(len=256), dimension(max_lines), public message
to be output by fatal, warning
Definition: messages.F90:160
subroutine, public messages_fatal(no_lines, only_root_writes, namespace)
Definition: messages.F90:414
subroutine, public messages_input_error(namespace, var, details, row, column)
Definition: messages.F90:713
subroutine, public messages_experimental(name, namespace)
Definition: messages.F90:1085
subroutine, public messages_info(no_lines, iunit, debug_only, stress, all_nodes, namespace)
Definition: messages.F90:616
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_half_hartree
half-Hartree exchange for two electrons (supports complex scaling)
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)