22 use,
intrinsic :: iso_fortran_env
90 integer,
parameter,
public :: &
91 PSEUDO_TYPE_ULTRASOFT = 30, &
96 integer,
parameter,
public :: &
97 PSEUDO_STATUS_SUCCESS = 0, &
105 integer,
parameter,
public :: &
106 PSEUDO_FORMAT_FILE_NOT_FOUND = 773, &
120 integer,
parameter,
public :: &
121 PSEUDO_EXCHANGE_UNKNOWN = -2, &
124 integer,
parameter,
public :: &
125 PSEUDO_CORRELATION_UNKNOWN = -2, &
129 integer,
parameter,
public :: &
130 PSEUDO_PAW_SHAPE_UNKNOWN = 0, &
138 integer(int64) :: dummy
150 character(kind=c_char),
intent(in) :: filename(*)
155 subroutine pseudo_init(pseudo, filename, fmt, ierr)
160 type(pseudo_t),
intent(out) :: pseudo
161 character(kind=c_char),
intent(in) :: filename(*)
162 integer,
intent(in) :: fmt
163 integer,
intent(out) :: ierr
172 type(
pseudo_t),
intent(inout) :: pseudo
181 type(
pseudo_t),
intent(in) :: pseudo
190 type(
pseudo_t),
intent(in) :: pseudo
200 type(
pseudo_t),
intent(in) :: pseudo
219 type(
pseudo_t),
intent(in) :: pseudo
229 type(
pseudo_t),
intent(in) :: pseudo
238 type(
pseudo_t),
intent(in) :: pseudo
247 type(
pseudo_t),
intent(in) :: pseudo
256 type(
pseudo_t),
intent(in) :: pseudo
265 type(
pseudo_t),
intent(in) :: pseudo
274 type(
pseudo_t),
intent(in) :: pseudo
275 integer,
intent(in) :: l
285 type(
pseudo_t),
intent(in) :: pseudo
286 real(real64),
intent(out) :: grid
297 real(real64),
intent(out) :: weight
307 type(
pseudo_t),
intent(in) :: pseudo
308 real(real64),
intent(out) :: local_potential
318 type(
pseudo_t),
intent(in) :: pseudo
319 integer,
intent(in) :: l
320 integer,
intent(in) :: ic
321 real(real64),
intent(out) :: projector
326 real(real64) function
pseudo_dij(pseudo, l, ic, jc)
331 type(
pseudo_t),
intent(in) :: pseudo
332 integer,
intent(in) :: l
333 integer,
intent(in) :: ic
334 integer,
intent(in) :: jc
339 real(real64) function
pseudo_qij(pseudo, l, ic, jc)
344 type(
pseudo_t),
intent(in) :: pseudo
345 integer,
intent(in) :: l
346 integer,
intent(in) :: ic
347 integer,
intent(in) :: jc
356 type(
pseudo_t),
intent(in) :: pseudo
366 type(
pseudo_t),
intent(in) :: pseudo
367 integer,
intent(in) :: i
368 integer,
intent(in) :: j
369 integer,
intent(in) :: ltot
370 real(real64),
intent(out) :: augmentation
380 type(
pseudo_t),
intent(in) :: pseudo
381 integer,
intent(in) :: l
382 real(real64),
intent(inout) :: radial_potential
392 type(
pseudo_t),
intent(in) :: pseudo
393 integer,
intent(in) :: l
394 real(real64),
intent(out) :: radial_function
404 type(
pseudo_t),
intent(in) :: pseudo
405 real(real64),
intent(out) :: nlcc_density
415 type(
pseudo_t),
intent(in) :: pseudo
416 real(real64),
intent(out) :: density
425 type(
pseudo_t),
intent(in) :: pseudo
435 type(
pseudo_t),
intent(in) :: pseudo
436 integer,
intent(in) :: index
437 integer,
intent(out) :: n
438 integer,
intent(out) :: l
439 real(real64),
intent(out) :: occ
440 real(real64),
intent(out) :: wf
449 type(
pseudo_t),
intent(in) :: pseudo
458 type(
pseudo_t),
intent(in) :: pseudo
467 type(
pseudo_t),
intent(in) :: pseudo
468 integer,
intent(in) :: l
469 integer,
intent(in) :: ic
478 type(
pseudo_t),
intent(in) :: pseudo
479 integer,
intent(in) :: ii
488 type(
pseudo_t),
intent(in) :: pseudo
498 type(
pseudo_t),
intent(in) :: pseudo
499 integer,
intent(in) :: index
500 real(real64),
intent(out) :: wf
509 type(
pseudo_t),
intent(in) :: pseudo
519 type(
pseudo_t),
intent(in) :: pseudo
520 integer,
intent(in) :: index
521 real(real64),
intent(out) :: wf
531 type(
pseudo_t),
intent(in) :: pseudo
532 integer,
intent(in) :: index
533 real(real64),
intent(out) :: wf
542 type(
pseudo_t),
intent(in) :: pseudo
552 type(
pseudo_t),
intent(in) :: pseudo
553 integer,
intent(in) :: index
554 real(real64),
intent(out) :: wf
563 type(
pseudo_t),
intent(in) :: pseudo
564 integer,
intent(in) :: index
573 type(
pseudo_t),
intent(in) :: pseudo
574 integer,
intent(in) :: index
584 type(
pseudo_t),
intent(in) :: pseudo
585 real(real64),
intent(out) :: density
595 type(
pseudo_t),
intent(in) :: pseudo
596 real(real64),
intent(out) :: potential
606 type(
pseudo_t),
intent(in) :: pseudo
607 real(real64),
intent(out) :: occ
617 type(
pseudo_t),
intent(in) :: pseudo
618 real(real64),
intent(out) :: multipoles
627 type(
pseudo_t),
intent(in) :: pseudo
636 type(
pseudo_t),
intent(in) :: pseudo
646 type(
pseudo_t),
intent(in) :: pseudo
651 real(real64) function pseudo_paw_cutoff_radius(pseudo)
656 type(
pseudo_t),
intent(in) :: pseudo
666 type(
pseudo_t),
intent(in) :: pseudo
669 integer function pseudo_has_nlcc_low(pseudo)
674 end function pseudo_has_nlcc_low
687 integer function pseudo_has_density_low(pseudo)
691 type(
pseudo_t),
intent(in) :: pseudo
692 end function pseudo_has_density_low
703 type(
pseudo_t),
intent(in) :: pseudo
706 integer function pseudo_has_qij_integrals_low(pseudo)
710 type(
pseudo_t),
intent(in) :: pseudo
711 end function pseudo_has_qij_integrals_low
722 type(
pseudo_t),
intent(in) :: pseudo
725 integer function pseudo_has_radial_augmentation_low(pseudo)
729 type(
pseudo_t),
intent(in) :: pseudo
730 end function pseudo_has_radial_augmentation_low
741 type(
pseudo_t),
intent(in) :: pseudo
744 integer function pseudo_radial_augmentation_has_angular_channels_low(pseudo)
748 type(
pseudo_t),
intent(in) :: pseudo
749 end function pseudo_radial_augmentation_has_angular_channels_low
753 (pseudo_radial_augmentation_has_angular_channels_low(pseudo) /= 0)
761 type(
pseudo_t),
intent(in) :: pseudo
764 integer pure function pseudo_has_total_angular_momentum_low(pseudo)
768 type(
pseudo_t),
intent(in) :: pseudo
769 end function pseudo_has_total_angular_momentum_low
779 type(
pseudo_t),
intent(in) :: pseudo
780 integer,
intent(in) :: l
783 integer function pseudo_has_radial_function_low(pseudo, l)
787 type(
pseudo_t),
intent(in) :: pseudo
788 integer,
intent(in) :: l
789 end function pseudo_has_radial_function_low
799 type(
pseudo_t),
intent(in) :: pseudo
802 integer function pseudo_has_paw_low(pseudo)
806 type(
pseudo_t),
intent(in) :: pseudo
807 end function pseudo_has_paw_low
817 type(
pseudo_t),
intent(in) :: pseudo
820 integer function pseudo_has_paw_ae_nlcc_low(pseudo)
824 type(
pseudo_t),
intent(in) :: pseudo
825 end function pseudo_has_paw_ae_nlcc_low
integer, parameter, public pseudo_type_kleinman_bylander
integer, parameter, public pseudo_paw_shape_gauss
logical function, public pseudo_has_radial_function(pseudo, l)
integer, parameter, public pseudo_format_qso
logical function, public pseudo_has_density(pseudo)
integer, parameter, public pseudo_format_hgh
integer, parameter, public pseudo_format_upf2
logical function, public pseudo_has_paw_ae_nlcc(pseudo)
logical function, public pseudo_has_paw(pseudo)
logical function, public pseudo_has_radial_augmentation(pseudo)
integer, parameter, public pseudo_type_paw
logical function, public pseudo_has_nlcc(pseudo)
integer, parameter, public pseudo_format_cpi
integer, parameter, public pseudo_status_unsupported_type
integer, parameter, public pseudo_status_file_not_found
integer, parameter, public pseudo_paw_shape_psq
integer, parameter, public pseudo_type_semilocal
logical function, public pseudo_has_qij_integrals(pseudo)
integer, parameter, public pseudo_format_psp8
integer, parameter, public pseudo_status_unsupported_type_ultrasoft
integer, parameter, public pseudo_paw_shape_bessel
logical function, public pseudo_radial_augmentation_has_angular_channels(pseudo)
logical pure function, public pseudo_has_total_angular_momentum(pseudo)
integer, parameter, public pseudo_format_psf
integer, parameter, public pseudo_status_unknown_format
integer, parameter, public pseudo_status_unsupported_type_paw
integer, parameter, public pseudo_paw_shape_sinc
integer, parameter, public pseudo_format_fhi
integer, parameter, public pseudo_correlation_any
integer, parameter, public pseudo_format_upf1
integer, parameter, public pseudo_format_unknown
integer, parameter, public pseudo_status_format_not_supported
integer, parameter, public pseudo_exchange_any
integer, parameter, public pseudo_format_psml